MCPcopy Index your code
hub / github.com/react/react / callCallback

Function callCallback

packages/react-reconciler/src/ReactFiberClassUpdateQueue.js:698–707  ·  view source on GitHub ↗
(callback: () => mixed, context: any)

Source from the content-addressed store, hash-verified

696}
697
698function callCallback(callback: () => mixed, context: any) {
699 if (typeof callback !== 'function') {
700 throw new Error(
701 'Invalid argument passed as callback. Expected a function. Instead ' +
702 `received: ${callback}`,
703 );
704 }
705
706 callback.call(context);
707}
708
709export function resetHasForceUpdateBeforeProcessing() {
710 hasForceUpdate = false;

Callers 2

commitHiddenCallbacksFunction · 0.85
commitCallbacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected