How to handle error with useSWRMutation? #2450
Unanswered
utg1-tdawg
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
The error handler that I pass to
onError
inuseSWRMutation
gets called when an error occurs. However, it seems like the error doesn't get caught which results in an unhandled runtime error.Here is my code:
The unhandled runtime error:
Any help will be greatly appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions