lifeomic / axios-fetch

A WebAPI Fetch implementation backed by an Axios client
MIT License
171 stars 30 forks source link

Abort requests via FetchInit signal abort #81

Open ziruihao opened 3 years ago

ziruihao commented 3 years ago

The Fetch API provides a method for aborting an ongoing request. Is there a way to use this with the underlying axios engine, which relies on cancellation tokens?

There's currently stale discussion on axios to support signal.

mdlavin commented 2 years ago

Interesting question and it looks like the linked Axios issue just merged. If there is something needed to support canceling in axios-fetch I'd love any contriubtion that adds support.