Best way to conditionally handle mutation errors globally? #4967
Unanswered
nicolassanmar
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Picture the following scenario:
mutationCache
showing a toast notification when an error happensWhat is the best way to achieve this behavior?
I was thinking of defining a custom mutation, which handles this case, while also using the
meta
property to avoid the global handling.Is there a better approach to this?
Beta Was this translation helpful? Give feedback.
All reactions