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

Function commitPassiveMountOnFiber

dash/deps/react-dom@18.3.1.js:24965–24986  ·  view source on GitHub ↗
(finishedRoot, finishedWork, committedLanes, committedTransitions)

Source from the content-addressed store, hash-verified

24963 }
24964
24965 function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {
24966 switch (finishedWork.tag) {
24967 case FunctionComponent:
24968 case ForwardRef:
24969 case SimpleMemoComponent:
24970 {
24971 if ( finishedWork.mode & ProfileMode) {
24972 startPassiveEffectTimer();
24973
24974 try {
24975 commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
24976 } finally {
24977 recordPassiveEffectDuration(finishedWork);
24978 }
24979 } else {
24980 commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
24981 }
24982
24983 break;
24984 }
24985 }
24986 }
24987
24988 function commitPassiveUnmountEffects(firstChild) {
24989 nextEffect = firstChild;

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…