Home / Function/ popNestedEffectDurations() — react Function Reference

popNestedEffectDurations() — react Function Reference

Architecture documentation for the popNestedEffectDurations() function in ReactProfilerTimer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  006c62ff_dc21_a892_060f_b8af1c4c9d34["popNestedEffectDurations()"]
  e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"]
  006c62ff_dc21_a892_060f_b8af1c4c9d34 -->|defined in| e054b9c7_41f1_c7f7_97bb_98b6a445e94b
  ce61aa22_42d2_811a_b317_96c8d0cb0321["commitLayoutEffectOnFiber()"]
  ce61aa22_42d2_811a_b317_96c8d0cb0321 -->|calls| 006c62ff_dc21_a892_060f_b8af1c4c9d34
  bc4a6de9_07dc_eca7_681a_10f692e08483["commitMutationEffectsOnFiber()"]
  bc4a6de9_07dc_eca7_681a_10f692e08483 -->|calls| 006c62ff_dc21_a892_060f_b8af1c4c9d34
  07f3c6d9_2fce_51ae_4408_e0d4ab7359a1["commitPassiveMountOnFiber()"]
  07f3c6d9_2fce_51ae_4408_e0d4ab7359a1 -->|calls| 006c62ff_dc21_a892_060f_b8af1c4c9d34
  8ece8c7a_ae72_8f82_6cb2_654f8dc2bc90["commitPassiveUnmountOnFiber()"]
  8ece8c7a_ae72_8f82_6cb2_654f8dc2bc90 -->|calls| 006c62ff_dc21_a892_060f_b8af1c4c9d34
  style 006c62ff_dc21_a892_060f_b8af1c4c9d34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactProfilerTimer.js lines 415–422

export function popNestedEffectDurations(prevEffectDuration: number): number {
  if (!enableProfilerTimer || !enableProfilerCommitHooks) {
    return 0;
  }
  const elapsedTime = profilerEffectDuration;
  profilerEffectDuration = prevEffectDuration;
  return elapsedTime;
}

Domain

Subdomains

Frequently Asked Questions

What does popNestedEffectDurations() do?
popNestedEffectDurations() is a function in the react codebase, defined in packages/react-reconciler/src/ReactProfilerTimer.js.
Where is popNestedEffectDurations() defined?
popNestedEffectDurations() is defined in packages/react-reconciler/src/ReactProfilerTimer.js at line 415.
What calls popNestedEffectDurations()?
popNestedEffectDurations() is called by 4 function(s): commitLayoutEffectOnFiber, commitMutationEffectsOnFiber, commitPassiveMountOnFiber, commitPassiveUnmountOnFiber.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free