(node)
| 23556 | } |
| 23557 | |
| 23558 | function reappearLayoutEffectsOnFiber(node) { |
| 23559 | // Turn on layout effects in a tree that previously disappeared. |
| 23560 | // TODO (Offscreen) Check: flags & LayoutStatic |
| 23561 | switch (node.tag) { |
| 23562 | case FunctionComponent: |
| 23563 | case ForwardRef: |
| 23564 | case SimpleMemoComponent: |
| 23565 | { |
| 23566 | if ( node.mode & ProfileMode) { |
| 23567 | try { |
| 23568 | startLayoutEffectTimer(); |
| 23569 | safelyCallCommitHookLayoutEffectListMount(node, node.return); |
| 23570 | } finally { |
| 23571 | recordLayoutEffectDuration(node); |
| 23572 | } |
| 23573 | } else { |
| 23574 | safelyCallCommitHookLayoutEffectListMount(node, node.return); |
| 23575 | } |
| 23576 | |
| 23577 | break; |
| 23578 | } |
| 23579 | |
| 23580 | case ClassComponent: |
| 23581 | { |
| 23582 | var instance = node.stateNode; |
| 23583 | |
| 23584 | if (typeof instance.componentDidMount === 'function') { |
| 23585 | safelyCallComponentDidMount(node, node.return, instance); |
| 23586 | } |
| 23587 | |
| 23588 | safelyAttachRef(node, node.return); |
| 23589 | break; |
| 23590 | } |
| 23591 | |
| 23592 | case HostComponent: |
| 23593 | { |
| 23594 | safelyAttachRef(node, node.return); |
| 23595 | break; |
| 23596 | } |
| 23597 | } |
| 23598 | } |
| 23599 | |
| 23600 | function hideOrUnhideAllChildren(finishedWork, isHidden) { |
| 23601 | // Only hide or unhide the top-most host nodes. |
no test coverage detected
searching dependent graphs…