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

Function isAlreadyRendering

packages/react-reconciler/src/ReactFiberWorkLoop.js:1865–1869  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1863}
1864
1865export function isAlreadyRendering(): boolean {
1866 // Used by the renderer to print a warning if certain APIs are called from
1867 // the wrong context, and for profiling warnings.
1868 return (executionContext & (RenderContext | CommitContext)) !== NoContext;
1869}
1870
1871export function isInvalidExecutionContextForEventFunction(): boolean {
1872 // Used to throw if certain APIs are called from the wrong context.

Callers 4

startUpdateTimerByLaneFunction · 0.90
startHostActionTimerFunction · 0.90
ReactDOMRoot.jsFile · 0.85
flushSyncFromReconcilerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected