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

Ability to set a maximum number of intervals? #222

chriddyp opened this issue Jul 2, 2018 · 1 comment


None yet
3 participants
Copy link

commented Jul 2, 2018

As suggested by a community member:

When I put it this way, the cleanest solution to my problem would be if dcc.Interval() supported the idea of counting a certain number of ticks and then stopping by itself, i.e. had something like a max_intervals parameter. I’m not sure if you have any other use-cases for that but if so, maybe it’s a feature suggestion?

Full discussion:

Seems like a pretty good idea, coul dbe useful for general delays and fits nicely into the existing component API


This comment has been minimized.

Copy link

commented Jul 2, 2018

Might also be useful to people trying to "turn off" the Interval, e.g. ?

That discussion is about turning it off in response to an event, but if there were a max_intervals parameter we could presumably turn the timer off manually by setting max_intervals=n_intervals.

@valentijnnieman valentijnnieman self-assigned this Jul 4, 2018

valentijnnieman added a commit that referenced this issue Jul 4, 2018

Added max_intervals prop to Interval component
As per #222. With integration test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.