loading...

re: Architecting HTTP clients in Vue.js applications for efficient network communication VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Your error handling does not work in the event of a network error (server offline) as it does not have a response object (error.response)
 

Hey, thanks for letting me know :)
This is a fairly simple fix to just check if error.response is present before switch-casing the error.response.status.

Will update the post with these changes.
Thank you.

Code of Conduct Report abuse