Is there a way to restart an interval counter manually? #9179
Unanswered
yulafezmesi
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.
Uh oh!
There was an error while loading. Please reload this page.
-
hi there!
I have a request that fetches data every 15 seconds using an interval. When the user performs another interaction, I disable this interval using the enabled option in the query configuration. So far, everything works as expected.
However, there's a scenario where I need to restart the interval (i.e. reset the timer back to 15 seconds from now) while keeping the current state/data. Essentially, I want to "refresh" or restart the interval manually.
Is there a way to do this within the current options?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions