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

Function onCommitRoot

packages/react-reconciler/src/ReactTestSelectors.js:547–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545const commitHooks: Array<Function> = [];
546
547export function onCommitRoot(): void {
548 if (supportsTestSelectors) {
549 commitHooks.forEach(commitHook => commitHook());
550 }
551}
552
553export type IntersectionObserverOptions = Object;
554

Callers

nothing calls this directly

Calls 2

commitHookFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected