Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer on polling, reset polling #5960

Closed
sneznaovca opened this issue Feb 18, 2020 · 2 comments
Closed

Timer on polling, reset polling #5960

sneznaovca opened this issue Feb 18, 2020 · 2 comments

Comments

@sneznaovca
Copy link

Hello,
Is there any way how create countdown or timer for polling?
There is problem with onCompleted function #5531.

Second problem is that refetch don't reset polling inverval, I have code

const handleButton = () => {
  stopPolling();
  refetch();
  startPolling(POLL_INTERVAL);
}

but after call handleButton in half of polling interval it continues. I think that expected behaviour is reset polling interval. Is it bug or feature? :)

@sneznaovca sneznaovca changed the title Timer on polling Timer on polling, reset polling Feb 18, 2020
@rgazelot
Copy link

@sneznaovca startPolling() will refetch your data. Why did you called refetch() just before?

@hwillson
Copy link
Member

As mentioned in #5960 (comment), it doesn't sound like there is an outstanding issue here, so closing. Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants