Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

disabled prop for dcc.Interval is not used. #325

@T4rk1n

Description

@T4rk1n

We have a disabled prop in the prop type definition of the Interval component, but it is not actually used by the code to disable the interval. Either remove it as we have the max_intervals=0 logic to stop the interval or make it stop the interval.

https://community.plot.ly/t/interval-component-cannot-be-disabled-via-callback/14455

Proposed solution:

  • replace the props argument in setInterval by this.props.
  • remove the disabled check from the interval.
  • check for disabled prop in componentWillReceiveProps.stop the loop if false .
  • restart the loop on disabled = True in componentWillReceiveProps if it was stopped.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions