You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that response middleware isn't called for request errors, we need a method for registering a global error callback; i.e. a callback that gets called whenever there's a request error (only network errors, not HTTP errors). Response callbacks would still be called. I can think of two use cases this fulfills:
Logging
If your app, client side, wants to show an error toast whenever there's been a problem instead of each component of the app doing it's own error handling (like many web apps do when your connection is flaky and it's trying to reconnect).
The text was updated successfully, but these errors were encountered:
Now that response middleware isn't called for request errors, we need a method for registering a global error callback; i.e. a callback that gets called whenever there's a request error (only network errors, not HTTP errors). Response callbacks would still be called. I can think of two use cases this fulfills:
The text was updated successfully, but these errors were encountered: