@samitouri / QOS-React / commits / 5e80d81f37

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.

Flarnie Marchan committed May 18, 2018 at 10:05 UTC 5e80d81f37789944dc578f02ffc3e6f9cf277440
1 file changed +1 -1
packages/react-scheduler/src/ReactScheduler.js
+1 -1
@@ -173,7 +173,7 @@ if (!ExecutionEnvironment.canUseDOM) {
173 // it has timed out!
174 // call it
175 const callback = currentCallbackConfig.scheduledCallback;
176 - safelyCallScheduledCallback(callback, timeoutTime);
176 + safelyCallScheduledCallback(callback, currentCallbackConfig.callbackId);
177 } else {
178 if (
179 timeoutTime !== -1 &&