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

Function updateMode

code/controlled-uncontrolled/public/app.js:9128–9139  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

9126 }
9127
9128 function updateMode(current, workInProgress) {
9129 var nextChildren = workInProgress.pendingProps.children;
9130 if (hasLegacyContextChanged()) {
9131 // Normally we can bail out on props equality but if context has changed
9132 // we don't do the bailout and we have to reuse existing props instead.
9133 } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) {
9134 return bailoutOnAlreadyFinishedWork(current, workInProgress);
9135 }
9136 reconcileChildren(current, workInProgress, nextChildren);
9137 memoizeProps(workInProgress, nextChildren);
9138 return workInProgress.child;
9139 }
9140
9141 function markRef(current, workInProgress) {
9142 var ref = workInProgress.ref;

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected