(current, workInProgress, renderExpirationTime)
| 10339 | } |
| 10340 | |
| 10341 | function updatePortalComponent(current, workInProgress, renderExpirationTime) { |
| 10342 | pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); |
| 10343 | var nextChildren = workInProgress.pendingProps; |
| 10344 | if (hasLegacyContextChanged()) { |
| 10345 | // Normally we can bail out on props equality but if context has changed |
| 10346 | // we don't do the bailout and we have to reuse existing props instead. |
| 10347 | } else if (workInProgress.memoizedProps === nextChildren) { |
| 10348 | return bailoutOnAlreadyFinishedWork(current, workInProgress); |
| 10349 | } |
| 10350 | |
| 10351 | if (current === null) { |
| 10352 | // Portals are special because we don't append the children during mount |
| 10353 | // but at commit. Therefore we need to track insertions which the normal |
| 10354 | // flow doesn't do during mount. This doesn't happen at the root because |
| 10355 | // the root always starts with a "current" with a null child. |
| 10356 | // TODO: Consider unifying this with how the root works. |
| 10357 | workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); |
| 10358 | memoizeProps(workInProgress, nextChildren); |
| 10359 | } else { |
| 10360 | reconcileChildren(current, workInProgress, nextChildren); |
| 10361 | memoizeProps(workInProgress, nextChildren); |
| 10362 | } |
| 10363 | return workInProgress.child; |
| 10364 | } |
| 10365 | |
| 10366 | function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { |
| 10367 | var fiber = workInProgress.child; |
no test coverage detected