(current, workInProgress)
| 10599 | } |
| 10600 | |
| 10601 | function bailoutOnLowPriority(current, workInProgress) { |
| 10602 | cancelWorkTimer(workInProgress); |
| 10603 | |
| 10604 | // TODO: Handle HostComponent tags here as well and call pushHostContext()? |
| 10605 | // See PR 8590 discussion for context |
| 10606 | switch (workInProgress.tag) { |
| 10607 | case HostRoot: |
| 10608 | pushHostRootContext(workInProgress); |
| 10609 | break; |
| 10610 | case ClassComponent: |
| 10611 | pushLegacyContextProvider(workInProgress); |
| 10612 | break; |
| 10613 | case HostPortal: |
| 10614 | pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); |
| 10615 | break; |
| 10616 | case ContextProvider: |
| 10617 | pushProvider(workInProgress); |
| 10618 | break; |
| 10619 | } |
| 10620 | // TODO: What if this is currently in progress? |
| 10621 | // How can that happen? How is this not being cloned? |
| 10622 | return null; |
| 10623 | } |
| 10624 | |
| 10625 | // TODO: Delete memoizeProps/State and move to reconcile/bailout instead |
| 10626 | function memoizeProps(workInProgress, nextProps) { |
no test coverage detected