Reset Mutation State in onError Handler of MutationCache
It’s possible to reset the mutation state inside the global onError handler for MutationCache?
I want to catch an AuthExpiredError from my API (when the user’s session has expired), in order to reset the state of all active queries and mutations, and then show a login modal.
Something like this: