global onError handling
With v4, we had this global handling of an inactive session. Basically when a refresh token expired, we would use this:
I could do the same thing in v5 with QueryCache, but that needs to be set in the initating of queryClient, meaning I can't use the queryClient context inside the modal.
What would be the best way to implement this?
I could do the same thing in v5 with QueryCache, but that needs to be set in the initating of queryClient, meaning I can't use the queryClient context inside the modal.
What would be the best way to implement this?