(current, workInProgress)
| 10554 | } |
| 10555 | |
| 10556 | function bailoutOnLowPriority(current, workInProgress) { |
| 10557 | cancelWorkTimer(workInProgress); |
| 10558 | |
| 10559 | // TODO: Handle HostComponent tags here as well and call pushHostContext()? |
| 10560 | // See PR 8590 discussion for context |
| 10561 | switch (workInProgress.tag) { |
| 10562 | case HostRoot: |
| 10563 | pushHostRootContext(workInProgress); |
| 10564 | break; |
| 10565 | case ClassComponent: |
| 10566 | pushLegacyContextProvider(workInProgress); |
| 10567 | break; |
| 10568 | case HostPortal: |
| 10569 | pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); |
| 10570 | break; |
| 10571 | case ContextProvider: |
| 10572 | pushProvider(workInProgress); |
| 10573 | break; |
| 10574 | } |
| 10575 | // TODO: What if this is currently in progress? |
| 10576 | // How can that happen? How is this not being cloned? |
| 10577 | return null; |
| 10578 | } |
| 10579 | |
| 10580 | // TODO: Delete memoizeProps/State and move to reconcile/bailout instead |
| 10581 | function memoizeProps(workInProgress, nextProps) { |
no test coverage detected