How to pause refreshInterval #623
Unanswered
SteveSchreiner
asked this question in
General
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.
-
I fetch remote data while setting refreshInterval. I would like the ability to pause refreshing at the set interval. I thought I could do pass a null key but that just cleared the cache all together. My use case is I mutate the data without revalidating and I don't want the interval to fire again and wipe out the data I mutated. As a work around I set up my own timer to refresh at set intervals but it first checks to see if the flag I created to indicate pausing has not been set.
Beta Was this translation helpful? Give feedback.
All reactions