(current, workInProgress, renderExpirationTime)
| 10236 | } |
| 10237 | |
| 10238 | function updatePortalComponent(current, workInProgress, renderExpirationTime) { |
| 10239 | pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); |
| 10240 | var nextChildren = workInProgress.pendingProps; |
| 10241 | if (hasLegacyContextChanged()) { |
| 10242 | // Normally we can bail out on props equality but if context has changed |
| 10243 | // we don't do the bailout and we have to reuse existing props instead. |
| 10244 | } else if (workInProgress.memoizedProps === nextChildren) { |
| 10245 | return bailoutOnAlreadyFinishedWork(current, workInProgress); |
| 10246 | } |
| 10247 | |
| 10248 | if (current === null) { |
| 10249 | // Portals are special because we don't append the children during mount |
| 10250 | // but at commit. Therefore we need to track insertions which the normal |
| 10251 | // flow doesn't do during mount. This doesn't happen at the root because |
| 10252 | // the root always starts with a "current" with a null child. |
| 10253 | // TODO: Consider unifying this with how the root works. |
| 10254 | workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); |
| 10255 | memoizeProps(workInProgress, nextChildren); |
| 10256 | } else { |
| 10257 | reconcileChildren(current, workInProgress, nextChildren); |
| 10258 | memoizeProps(workInProgress, nextChildren); |
| 10259 | } |
| 10260 | return workInProgress.child; |
| 10261 | } |
| 10262 | |
| 10263 | function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { |
| 10264 | var fiber = workInProgress.child; |
no test coverage detected