Handling cached query errors #2898
Unanswered
hoffmanilya
asked this question in
Q&A
Replies: 0 comments
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.
-
First of all, thanks for an amazing library!
I'm running into an issue and I'm trying to understand whether I'm missing something or if there's an alternative pattern that would work better. I have a form component that displays either a loading spinner, an error message or the queried data:
Take this scenario for example:
UserForm
above.ErrorMessage
.UserForm
component is re-mounted and briefly shows the error message before the query is fired again.Is there a way to prevent this behavior? Basically, I don't want the error message to be rendered when the component is re-mounted and the query's last result is an error.
Beta Was this translation helpful? Give feedback.
All reactions