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

Function commitCallbacks

packages/react-reconciler/src/ReactFiberClassUpdateQueue.js:751–763  ·  view source on GitHub ↗
(
  updateQueue: UpdateQueue<State>,
  context: any,
)

Source from the content-addressed store, hash-verified

749}
750
751export function commitCallbacks<State>(
752 updateQueue: UpdateQueue<State>,
753 context: any,
754): void {
755 const callbacks = updateQueue.callbacks;
756 if (callbacks !== null) {
757 updateQueue.callbacks = null;
758 for (let i = 0; i < callbacks.length; i++) {
759 const callback = callbacks[i];
760 callCallback(callback, context);
761 }
762 }
763}

Callers 2

commitClassCallbacksFunction · 0.90
commitRootCallbacksFunction · 0.90

Calls 1

callCallbackFunction · 0.85

Tested by

no test coverage detected