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:
Flarnie Marchan
2018-05-18 10:05:49 -07:00
committed by GitHub
parent 17908c8ac9
commit 5e80d81f37
+1 -1
View File
@@ -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 &&