Replies: 3 comments 3 replies
-
Hi, @Covicake! |
Beta Was this translation helpful? Give feedback.
-
I had the same problem & I managed to get it working this way.
then in the
|
Beta Was this translation helpful? Give feedback.
-
not sure if it's possible, but maybe we could try to change the api of
this would kinda be the same api that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm trying to set React Query to handle all errors wherever the mutations are used (to display an error in a form, for example), except for two specific errors (500 and 404) which I want to delegate to an Error Boundary, but I can't figure out how to do it.
I've read that you can set
useErrorBoundary
config option totrue
, but this will make ALL errors go to the ErrorBoundary, orthrowOnError
, which will make none of the errors go to the ErrorBoundary.Is it possible to achieve what I want using React Query?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions