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

Function updateMode

code/styling/public/app.js:9804–9815  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

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

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected