Thanks for the solution on Axios request.
I have a question.
I'm using an instance of Axios and in this instance, you cant be able to use instanceAxios.CancelToken.source() so I gotta import Axios too.
is there another way to use CancelToken.source() in the instance of Axios like instanceAxios.CancelToken.source()?
Martin Mato is a self-taught developer who lives and works in Uruguay. Learning and developing for the last 10 years with #react #react-native #angular #dotnet
Thanks for the solution on Axios request.
I have a question.
I'm using an instance of Axios and in this instance, you cant be able to use
instanceAxios.CancelToken.source()so I gotta import Axios too.is there another way to use
CancelToken.source()in the instance of Axios likeinstanceAxios.CancelToken.source()?As far as I know axios by design,
cancelTokenwon't be part of the instance. You may be able to do something similar to this.