Skip to content
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

Support AbortController #38

Open
MortezaNajafian opened this issue Nov 29, 2021 · 1 comment
Open

Support AbortController #38

MortezaNajafian opened this issue Nov 29, 2021 · 1 comment

Comments

@MortezaNajafian
Copy link

MortezaNajafian commented Nov 29, 2021

hello dear
Do this module support AbortController and signal config like this ?

const controller = new AbortController();

axios.get('/foo/bar', {
   signal: controller.signal
}).then(function(response) {
   //...
});
// cancel the request
controller.abort()
@MortezaNajafian
Copy link
Author

I think you should upgrade axios package to upper than or equal v0.22.0 in your library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant