DEV Community

Discussion on: Axios vs Fetch

Collapse
 
link2twenty profile image
Andrew Bone

Interesting article, I've never really used Axios.

Fetch can use the Abort Controller API to cancel requests. Also progress is coming.

I think it would be very simple to write a wrapper for fetch with fallbacks in place for old browsers.

Collapse
 
kpiteng profile image
kpiteng

Thanks for adding your valuable inputs, I will check and update it. Thanks

Collapse
 
link2twenty profile image
Andrew Bone

In fact here's a demo of loading progress. The loading is slowed down so you have time to see the bar do something.

The syntax is more complex than axios but it's built into the browser so will be faster.