-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
10 seconds have passed in real time, but only 5~6 seconds changed on the Timer.
Possible reasons behind the issue
- JS threading issue? (single thread)
- setInterval guarantees that the time gap between callback execution is at least 'delay' argument, not that callback executes exactly after the 'delay' Ref
→ other processes may meddle in before callback executes, making it longer than 'delay' for callback to run = our Timer doesn't tick per second - Or maybe performance issue related with React useEffect hook Link
related question
https://stackoverflow.com/questions/23506103/setinterval-slows-down-with-tab-window-inactive
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working