mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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
-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