(current, workInProgress)
| 9163 | } |
| 9164 | |
| 9165 | function updateMode(current, workInProgress) { |
| 9166 | var nextChildren = workInProgress.pendingProps.children; |
| 9167 | if (hasLegacyContextChanged()) { |
| 9168 | // Normally we can bail out on props equality but if context has changed |
| 9169 | // we don't do the bailout and we have to reuse existing props instead. |
| 9170 | } else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) { |
| 9171 | return bailoutOnAlreadyFinishedWork(current, workInProgress); |
| 9172 | } |
| 9173 | reconcileChildren(current, workInProgress, nextChildren); |
| 9174 | memoizeProps(workInProgress, nextChildren); |
| 9175 | return workInProgress.child; |
| 9176 | } |
| 9177 | |
| 9178 | function markRef(current, workInProgress) { |
| 9179 | var ref = workInProgress.ref; |
no test coverage detected