Home / Function/ popComponentEffectDuration() — react Function Reference

popComponentEffectDuration() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e047b0ab_3567_71e4_0705_344ee07a23b7["popComponentEffectDuration()"]
  e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"]
  e047b0ab_3567_71e4_0705_344ee07a23b7 -->|defined in| e054b9c7_41f1_c7f7_97bb_98b6a445e94b
  ce61aa22_42d2_811a_b317_96c8d0cb0321["commitLayoutEffectOnFiber()"]
  ce61aa22_42d2_811a_b317_96c8d0cb0321 -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  5af9a16a_ed89_d37e_b847_bcb6a2805eae["commitDeletionEffectsOnFiber()"]
  5af9a16a_ed89_d37e_b847_bcb6a2805eae -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  38cb51c8_1ba3_adb6_6b57_5b5853e89841["disappearLayoutEffects()"]
  38cb51c8_1ba3_adb6_6b57_5b5853e89841 -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  1846396a_6bcb_7ad4_8180_1d20ef2960a4["reappearLayoutEffects()"]
  1846396a_6bcb_7ad4_8180_1d20ef2960a4 -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  07f3c6d9_2fce_51ae_4408_e0d4ab7359a1["commitPassiveMountOnFiber()"]
  07f3c6d9_2fce_51ae_4408_e0d4ab7359a1 -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  19b7647a_1cb8_04c7_c5f0_d84f212da7c7["commitPassiveUnmountInsideDeletedTreeOnFiber()"]
  19b7647a_1cb8_04c7_c5f0_d84f212da7c7 -->|calls| e047b0ab_3567_71e4_0705_344ee07a23b7
  style e047b0ab_3567_71e4_0705_344ee07a23b7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactProfilerTimer.js lines 473–482

export function popComponentEffectDuration(prevEffectDuration: number): void {
  if (!enableProfilerTimer || !enableProfilerCommitHooks) {
    return;
  }
  // If the parent component didn't have a start time, we let this current time persist.
  if (prevEffectDuration >= 0) {
    // Otherwise, we restore the previous parent's start time.
    componentEffectDuration = prevEffectDuration;
  }
}

Domain

Subdomains

Frequently Asked Questions

What does popComponentEffectDuration() do?
popComponentEffectDuration() is a function in the react codebase, defined in packages/react-reconciler/src/ReactProfilerTimer.js.
Where is popComponentEffectDuration() defined?
popComponentEffectDuration() is defined in packages/react-reconciler/src/ReactProfilerTimer.js at line 473.
What calls popComponentEffectDuration()?
popComponentEffectDuration() is called by 6 function(s): commitDeletionEffectsOnFiber, commitLayoutEffectOnFiber, commitPassiveMountOnFiber, commitPassiveUnmountInsideDeletedTreeOnFiber, disappearLayoutEffects, reappearLayoutEffects.

Analyze Your Own Codebase

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

Try Supermodel Free