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

Function commitPassiveUnmountOnFiber

dash/deps/react-dom@18.3.1.js:25072–25089  ·  view source on GitHub ↗
(finishedWork)

Source from the content-addressed store, hash-verified

25070 }
25071
25072 function commitPassiveUnmountOnFiber(finishedWork) {
25073 switch (finishedWork.tag) {
25074 case FunctionComponent:
25075 case ForwardRef:
25076 case SimpleMemoComponent:
25077 {
25078 if ( finishedWork.mode & ProfileMode) {
25079 startPassiveEffectTimer();
25080 commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
25081 recordPassiveEffectDuration(finishedWork);
25082 } else {
25083 commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
25084 }
25085
25086 break;
25087 }
25088 }
25089 }
25090
25091 function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {
25092 while (nextEffect !== null) {

Callers 1

Calls 3

startPassiveEffectTimerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…