Replies: 3 comments 8 replies
-
I would do this in the |
Beta Was this translation helpful? Give feedback.
-
I think this would be a great feature too. My use case - I currently intercept errors to show notifications on the UI. I don't want to repeat this logic for every query.
@magom001 - did |
Beta Was this translation helpful? Give feedback.
-
The best way to do this is with the global |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Slightly related to #116
What do you think about adding middleware functionality to react-query? Use case:
I would like to preprocess all error messages before they reach onError callbacks. I currently achieved the desired result by use
setLogger
and mutating the error object, but I reckon it is not meant to be used in this manner.Beta Was this translation helpful? Give feedback.
All reactions