We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0672829 commit 3ed289bCopy full SHA for 3ed289b
packages/react-reconciler/src/SchedulerWithReactIntegration.js
@@ -160,7 +160,9 @@ export function cancelCallback(callbackNode: mixed) {
160
161
export function flushSyncCallbackQueue() {
162
if (immediateQueueCallbackNode !== null) {
163
- Scheduler_cancelCallback(immediateQueueCallbackNode);
+ const node = immediateQueueCallbackNode;
164
+ immediateQueueCallbackNode = null;
165
+ Scheduler_cancelCallback(node);
166
}
167
flushSyncCallbackQueueImpl();
168
0 commit comments