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

Function commitPassiveUnmountInsideDeletedTreeOnFiber

dash/deps/react-dom@18.3.1.js:25139–25156  ·  view source on GitHub ↗
(current, nearestMountedAncestor)

Source from the content-addressed store, hash-verified

25137 }
25138
25139 function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) {
25140 switch (current.tag) {
25141 case FunctionComponent:
25142 case ForwardRef:
25143 case SimpleMemoComponent:
25144 {
25145 if ( current.mode & ProfileMode) {
25146 startPassiveEffectTimer();
25147 commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
25148 recordPassiveEffectDuration(current);
25149 } else {
25150 commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
25151 }
25152
25153 break;
25154 }
25155 }
25156 } // TODO: Reuse reappearLayoutEffects traversal here?
25157
25158
25159 function invokeLayoutEffectMountInDEV(fiber) {

Calls 3

startPassiveEffectTimerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…