-
Notifications
You must be signed in to change notification settings - Fork 100
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
Is there support for aborting requests? #11
Comments
I think it would be nice to add a signal to the axios option and abort it as an API. Ideally, the following is how to use it :) import axios from "axios";
const controller = new AbortController();
const signal = controller.signal;
const p = axios.get('/user/1234', { signal });
controller.abort(); // abort! The implementation also seems to be feasible by passing a signal under this option. Line 174 in 982fd7f
|
@konojunya that's the plan! I actually am already exporting |
Would also love to use signal with redaxios (and TypeScript). Is this already possible with what is mentioned in the two comments above? If yes, how? |
An example, please.
The text was updated successfully, but these errors were encountered: