mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
High pri - ensure we call timed out callbacks in schedule (#12857)
**what is the change?:** Fix a typo which caused timed out callbacks to not be called. **why make this change?:** This is a bug caught by tests I'm in the process of writing, and we should fix it asap. **test plan:** Tests in a WIP PR - will push and share the WIP test in comments on this PR.
This commit is contained in:
1 parent
17908c8ac9
commit
5e80d81f37
1 file changed
+1
-1
+1
-1
@@ -173,7 +173,7 @@ if (!ExecutionEnvironment.canUseDOM) {
|
||||
// it has timed out!
|
||||
// call it
|
||||
const callback = currentCallbackConfig.scheduledCallback;
|
||||
safelyCallScheduledCallback(callback, timeoutTime);
|
||||
safelyCallScheduledCallback(callback, currentCallbackConfig.callbackId);
|
||||
} else {
|
||||
if (
|
||||
timeoutTime !== -1 &&
|
||||
|
||||
Reference in new issue
Block a user