Home / Function/ commitHookPassiveUnmountEffects() — react Function Reference

commitHookPassiveUnmountEffects() — react Function Reference

Architecture documentation for the commitHookPassiveUnmountEffects() function in ReactFiberCommitEffects.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f1b730f8_6531_6ca3_ecc6_386e64652c07["commitHookPassiveUnmountEffects()"]
  8f5342bb_933e_6410_b584_cc120047394a["ReactFiberCommitEffects.js"]
  f1b730f8_6531_6ca3_ecc6_386e64652c07 -->|defined in| 8f5342bb_933e_6410_b584_cc120047394a
  8ece8c7a_ae72_8f82_6cb2_654f8dc2bc90["commitPassiveUnmountOnFiber()"]
  8ece8c7a_ae72_8f82_6cb2_654f8dc2bc90 -->|calls| f1b730f8_6531_6ca3_ecc6_386e64652c07
  19b7647a_1cb8_04c7_c5f0_d84f212da7c7["commitPassiveUnmountInsideDeletedTreeOnFiber()"]
  19b7647a_1cb8_04c7_c5f0_d84f212da7c7 -->|calls| f1b730f8_6531_6ca3_ecc6_386e64652c07
  c4d9a9cc_f5a1_3cd7_8ada_0c662e173d45["shouldProfile()"]
  f1b730f8_6531_6ca3_ecc6_386e64652c07 -->|calls| c4d9a9cc_f5a1_3cd7_8ada_0c662e173d45
  31dbea93_6a15_5a88_2a94_0513d6287f5a["commitHookEffectListUnmount()"]
  f1b730f8_6531_6ca3_ecc6_386e64652c07 -->|calls| 31dbea93_6a15_5a88_2a94_0513d6287f5a
  style f1b730f8_6531_6ca3_ecc6_386e64652c07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberCommitEffects.js lines 317–337

export function commitHookPassiveUnmountEffects(
  finishedWork: Fiber,
  nearestMountedAncestor: null | Fiber,
  hookFlags: HookFlags,
) {
  if (shouldProfile(finishedWork)) {
    startEffectTimer();
    commitHookEffectListUnmount(
      hookFlags,
      finishedWork,
      nearestMountedAncestor,
    );
    recordEffectDuration(finishedWork);
  } else {
    commitHookEffectListUnmount(
      hookFlags,
      finishedWork,
      nearestMountedAncestor,
    );
  }
}

Domain

Subdomains

Frequently Asked Questions

What does commitHookPassiveUnmountEffects() do?
commitHookPassiveUnmountEffects() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCommitEffects.js.
Where is commitHookPassiveUnmountEffects() defined?
commitHookPassiveUnmountEffects() is defined in packages/react-reconciler/src/ReactFiberCommitEffects.js at line 317.
What does commitHookPassiveUnmountEffects() call?
commitHookPassiveUnmountEffects() calls 2 function(s): commitHookEffectListUnmount, shouldProfile.
What calls commitHookPassiveUnmountEffects()?
commitHookPassiveUnmountEffects() is called by 2 function(s): commitPassiveUnmountInsideDeletedTreeOnFiber, commitPassiveUnmountOnFiber.

Analyze Your Own Codebase

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

Try Supermodel Free