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

Function updateMode

code/event-handlers/public/app.js:9134–9145  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

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

Callers 1

beginWorkFunction · 0.70

Calls 3

reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected