MCPcopy
hub / github.com/facebook/react / cancelCallback

Function cancelCallback

packages/react-reconciler/src/ReactFiberRootScheduler.js:641–648  ·  view source on GitHub ↗
(callbackNode: mixed)

Source from the content-addressed store, hash-verified

639}
640
641function cancelCallback(callbackNode: mixed) {
642 if (__DEV__ && callbackNode === fakeActCallbackNode) {
643 // Special `act` case: check if this is the fake callback node used by
644 // the `act` implementation.
645 } else if (callbackNode !== null) {
646 Scheduler_cancelCallback(callbackNode);
647 }
648}
649
650function scheduleImmediateRootScheduleTask() {
651 if (__DEV__ && ReactSharedInternals.actQueue !== null) {

Calls

no outgoing calls

Tested by

no test coverage detected