Clear canceled task node early (#16403)
This commit is contained in:
parent
0672829053
commit
3ed289b3b1
|
@ -160,7 +160,9 @@ export function cancelCallback(callbackNode: mixed) {
|
|||
|
||||
export function flushSyncCallbackQueue() {
|
||||
if (immediateQueueCallbackNode !== null) {
|
||||
Scheduler_cancelCallback(immediateQueueCallbackNode);
|
||||
const node = immediateQueueCallbackNode;
|
||||
immediateQueueCallbackNode = null;
|
||||
Scheduler_cancelCallback(node);
|
||||
}
|
||||
flushSyncCallbackQueueImpl();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue