MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / updateMode

Function updateMode

code/third-party/public/app.js:9037–9048  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

9035 }
9036
9037 function updateMode(current, workInProgress) {
9038 var nextChildren = workInProgress.pendingProps.children;
9039 if (hasLegacyContextChanged()) {
9040 // Normally we can bail out on props equality but if context has changed
9041 // we don't do the bailout and we have to reuse existing props instead.
9042 } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) {
9043 return bailoutOnAlreadyFinishedWork(current, workInProgress);
9044 }
9045 reconcileChildren(current, workInProgress, nextChildren);
9046 memoizeProps(workInProgress, nextChildren);
9047 return workInProgress.child;
9048 }
9049
9050 function markRef(current, workInProgress) {
9051 var ref = workInProgress.ref;

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected