(current, workInProgress, renderExpirationTime)
| 10173 | } |
| 10174 | |
| 10175 | function updateCallComponent(current, workInProgress, renderExpirationTime) { |
| 10176 | var nextProps = workInProgress.pendingProps; |
| 10177 | if (hasLegacyContextChanged()) { |
| 10178 | // Normally we can bail out on props equality but if context has changed |
| 10179 | // we don't do the bailout and we have to reuse existing props instead. |
| 10180 | } else if (workInProgress.memoizedProps === nextProps) { |
| 10181 | nextProps = workInProgress.memoizedProps; |
| 10182 | // TODO: When bailing out, we might need to return the stateNode instead |
| 10183 | // of the child. To check it for work. |
| 10184 | // return bailoutOnAlreadyFinishedWork(current, workInProgress); |
| 10185 | } |
| 10186 | |
| 10187 | var nextChildren = nextProps.children; |
| 10188 | |
| 10189 | // The following is a fork of reconcileChildrenAtExpirationTime but using |
| 10190 | // stateNode to store the child. |
| 10191 | if (current === null) { |
| 10192 | workInProgress.stateNode = mountChildFibers(workInProgress, workInProgress.stateNode, nextChildren, renderExpirationTime); |
| 10193 | } else { |
| 10194 | workInProgress.stateNode = reconcileChildFibers(workInProgress, current.stateNode, nextChildren, renderExpirationTime); |
| 10195 | } |
| 10196 | |
| 10197 | memoizeProps(workInProgress, nextProps); |
| 10198 | // This doesn't take arbitrary time so we could synchronously just begin |
| 10199 | // eagerly do the work of workInProgress.child as an optimization. |
| 10200 | return workInProgress.stateNode; |
| 10201 | } |
| 10202 | |
| 10203 | function updatePortalComponent(current, workInProgress, renderExpirationTime) { |
| 10204 | pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); |
no test coverage detected