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

Function updateMode

code/higher-order-components/public/app.js:9798–9809  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

9796 }
9797
9798 function updateMode(current, workInProgress) {
9799 var nextChildren = workInProgress.pendingProps.children;
9800 if (hasLegacyContextChanged()) {
9801 // Normally we can bail out on props equality but if context has changed
9802 // we don't do the bailout and we have to reuse existing props instead.
9803 } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) {
9804 return bailoutOnAlreadyFinishedWork(current, workInProgress);
9805 }
9806 reconcileChildren(current, workInProgress, nextChildren);
9807 memoizeProps(workInProgress, nextChildren);
9808 return workInProgress.child;
9809 }
9810
9811 function markRef(current, workInProgress) {
9812 var ref = workInProgress.ref;

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected