-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel request using Axios #126
Comments
I think I've managed by passing a using a AbortController like this:
Then I can pass a signal in the options object like so:
And then I can abort like this:
|
Hey can I help you, with the code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need this to avoid the react error "Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function."
I know about the "cancel token" as described in this Medium article.
But how to implement this with react-adal is not clear.
The text was updated successfully, but these errors were encountered: