MCPcopy Create free account
hub / github.com/plotly/dash / reappearLayoutEffectsOnFiber

Function reappearLayoutEffectsOnFiber

dash/deps/react-dom@18.3.1.js:23558–23598  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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.

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…