Ah this is true. I intended adding that to the article but forgot.
Yeah. fetch throws for only network errors and you'll have to manually check for other errors unlike axios.
Guess I'll have to add this to the article with an example.
Thanks for sharing
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Error handling is very nicely done in axios too. With fetch lots of if statements for simple error handling.
Ah this is true. I intended adding that to the article but forgot.
Yeah. fetch throws for only network errors and you'll have to manually check for other errors unlike axios.
Guess I'll have to add this to the article with an example.
Thanks for sharing