(finishedRoot, finishedWork, committedLanes, committedTransitions)
| 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; |
no test coverage detected
searching dependent graphs…