Replies: 1 comment 5 replies
-
I'm a bit irritated. Why does your cache get invalid after 60s while the item is still being displayed? |
Beta Was this translation helpful? Give feedback.
5 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.
-
imagine a very common use case: I am using
RefreshControll
in the react-native:this is totally ok, but the problem is when the cache gets invalid after the 60s, useQuery is going to
refetch
automatically and shows a refresh indicator on the UI, which is wrong.I am using a very simple solution to solve that and I am looking for a better workaround to manage this state.
This is my solution:
Beta Was this translation helpful? Give feedback.
All reactions