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

Function updateMode

code/one-direction-data-flow/public/app.js:9677–9688  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

9675 }
9676
9677 function updateMode(current, workInProgress) {
9678 var nextChildren = workInProgress.pendingProps.children;
9679 if (hasLegacyContextChanged()) {
9680 // Normally we can bail out on props equality but if context has changed
9681 // we don't do the bailout and we have to reuse existing props instead.
9682 } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) {
9683 return bailoutOnAlreadyFinishedWork(current, workInProgress);
9684 }
9685 reconcileChildren(current, workInProgress, nextChildren);
9686 memoizeProps(workInProgress, nextChildren);
9687 return workInProgress.child;
9688 }
9689
9690 function markRef(current, workInProgress) {
9691 var ref = workInProgress.ref;

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected