Replies: 1 comment
-
You can use Apollo Links, such as the ErrorLink. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is no such thing as a "global response handler" in the doc API: https://akryum.github.io/vue-apollo/api/apollo-provider.html#constructor
Problem
The global error handler will only get triggered on schema/network errors. If the API
throw
s some error, it'll still return a 200 OK containingerrors: []
, I'd like to notify errors globally, but I need a global response handler for that.For example, axios provides both (https://github.com/axios/axios#interceptors).
Beta Was this translation helpful? Give feedback.
All reactions