MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / updateMode

Function updateMode

code/composition/public/app.js:9942–9953  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

9940 }
9941
9942 function updateMode(current, workInProgress) {
9943 var nextChildren = workInProgress.pendingProps.children;
9944 if (hasLegacyContextChanged()) {
9945 // Normally we can bail out on props equality but if context has changed
9946 // we don't do the bailout and we have to reuse existing props instead.
9947 } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) {
9948 return bailoutOnAlreadyFinishedWork(current, workInProgress);
9949 }
9950 reconcileChildren(current, workInProgress, nextChildren);
9951 memoizeProps(workInProgress, nextChildren);
9952 return workInProgress.child;
9953 }
9954
9955 function markRef(current, workInProgress) {
9956 var ref = workInProgress.ref;

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected