-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Timers are unreliable (firing too fast) when Dev Tools are open #22620
Copy link
Copy link
Closed
Labels
BugDebuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.JavaScriptStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Metadata
Metadata
Assignees
Labels
BugDebuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.This issue can be reproduced in Snack or an attached project.JavaScriptStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Environment
Description
The same thing as here: #14639
Timers (both intervals and timeouts) are firing too fast, looks like they're dividing the time value by some factor.
Reproducible Demo
Simple
setTimeout(fn, 5000)usually calls the function in around 1 second, but can be even faster.Closing Dev Tools solves the issue.
#14639 seems to be wrongly closed by bot or there is an regression.