-
I have a situation where I want to throw to an error boundary if the query fails. BUT, if the app is offline, I want to render any cached data even if the query is currently failing due to any number of offline conditions. Right now, I'm having to define this functionality in every query config object. I would like to be able to define it globally. My proposal is to add the query state as another parameter to the useErrorBoundary function. Here's what I'm doing now:
Here's what I would like to be able to do (or something like it):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Like this open PR? |
Beta Was this translation helpful? Give feedback.
Like this open PR?
#2660