From 5e80d81f37789944dc578f02ffc3e6f9cf277440 Mon Sep 17 00:00:00 2001 From: Flarnie Marchan Date: Fri, 18 May 2018 10:05:49 -0700 Subject: [PATCH] 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. --- packages/react-scheduler/src/ReactScheduler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scheduler/src/ReactScheduler.js b/packages/react-scheduler/src/ReactScheduler.js index 942d69de9c..9e20c6048a 100644 --- a/packages/react-scheduler/src/ReactScheduler.js +++ b/packages/react-scheduler/src/ReactScheduler.js @@ -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 &&