-
Notifications
You must be signed in to change notification settings - Fork 24
Timer callbacks #60
Copy link
Copy link
Open
Description
onTimeUpdate wrong triggering time
onTimeUpdate function is called on component mount. I think it should be called ONLY when timer status is 'RUNNING'.
Otherwise there should be some checks like:
onTimeUpdate: () => {
if (timerName.status === 'STOPPED') return;
...code
},Good callback fn to add
- onTimeReset
- onTimePause
- onTimeStop
- onTimeStart
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels