Replies: 1 comment
-
I'm not sure how a queryError would look like. react-query doesn't actually know about your errors, which is why the What you can do on your side is to wrap your queryFn, catch all the errors and wrap them. If you use
that way, your queryErrors will be an object with the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why
Current recommended solution when using
useQueryErrorResetBoundary
can't differentiate between a query error and a regular error in the child component. There might be an error which isn't related to the query, the queries might have succeeded, but if we follow the documentation the action suggested by the app is to reset queries.Suggestion
Add a way to differentiate between a query Error and a different error.
What a solution might look like
With
isQueryError
we can offer the most relevant and effective course of action.Beta Was this translation helpful? Give feedback.
All reactions