Skip to content

"Stop"-function does not reset timer #36

@megasus

Description

@megasus

Bug Description:

Hey there!
Maybe I am missing something, but shouldn't I be able to reset the timer by using the provided Stop function of IntervalControls?

To Reproduce:
Minimal example here:
https://playcode.io/1954849

Expected behavior:
I start the timer by calling start(), the timer starts ticking as expected.
I stop the timer by calling stop(), the timer should halt and reset to its initial value (0).
Alternatively it could also reset on start() after the timer has previously been stopped, which is currently also not the case.

System:

  • Node Version: 18.12.1
  • OS: Windows 11
  • Browser: chrome 127

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions