nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
929 stars 195 forks source link

"apollo:error" hook not working on production #461

Closed maniek335 closed 1 year ago

maniek335 commented 1 year ago

Environment

Describe the bug

In the documentation is the description "apollo:error" hook. I thought this would allow me to handle jwt token expiration errors globally. But I found a condition in the code to disable the hook in production.

Expected behaviour

After building the application, I expect the working "apollo:error" hook.

Reproduction

No response

Additional context

No response

Logs

No response

Diizzayy commented 1 year ago

But I found a condition in the code to disable the hook in production.

Indeed, I'll release an update shortly addressing this issue