DEV Community

Discussion on: Do you use Axios or Fetch?

Collapse
khalyomede profile image
Khalyomede

Months have past, and I finally switched my fetch call for axios call. So much better indeed, and I found a way to overcome issue 1. I mentioned.

What made me make do the refractor is the fact that fetch would not throw proper exception if the error code were different than 200, I manually need to check if response.ok. So axios is my go to http request tool now 🤓