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

Function isForkedChild

packages/react-reconciler/src/ReactFiberTreeContext.js:89–92  ·  view source on GitHub ↗
(workInProgress: Fiber)

Source from the content-addressed store, hash-verified

87let treeContextOverflow: string = '';
88
89export function isForkedChild(workInProgress: Fiber): boolean {
90 warnIfNotHydrating();
91 return (workInProgress.flags & Forked) !== NoFlags;
92}
93
94export function getForksAtLevel(workInProgress: Fiber): number {
95 warnIfNotHydrating();

Callers 1

beginWorkFunction · 0.90

Calls 1

warnIfNotHydratingFunction · 0.85

Tested by

no test coverage detected