Refetch on focus interval #2482
Unanswered
clicktodev
asked this question in
Ideas
Replies: 1 comment
-
why infinitely? It should only fetch for how long you have
you can use the
For that, you'd need to turn the refetchInterval on/off depending on the query state, which you'd need likely need to capture in local state. something like:
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if a request returns an error then it will infinitely refetch on focus if it keeps returning an error.
Is there a way to add an interval so that for example the refetch on focus retries every 5 minutes.
Perhaps only add the interval to failed requests.
Beta Was this translation helpful? Give feedback.
All reactions