Home / Function/ commitPassiveUnmountEffectsInsideOfDeletedTree_complete() — react Function Reference

commitPassiveUnmountEffectsInsideOfDeletedTree_complete() — react Function Reference

Architecture documentation for the commitPassiveUnmountEffectsInsideOfDeletedTree_complete() function in ReactFiberCommitWork.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  cf9f6da8_dd94_460c_451a_95fb5e125105["commitPassiveUnmountEffectsInsideOfDeletedTree_complete()"]
  e0fbfbd5_47b0_a489_0b36_bbfad9245544["ReactFiberCommitWork.js"]
  cf9f6da8_dd94_460c_451a_95fb5e125105 -->|defined in| e0fbfbd5_47b0_a489_0b36_bbfad9245544
  729871c3_3107_8e90_f4db_d567db865b85["commitPassiveUnmountEffectsInsideOfDeletedTree_begin()"]
  729871c3_3107_8e90_f4db_d567db865b85 -->|calls| cf9f6da8_dd94_460c_451a_95fb5e125105
  a393bc4d_dd4d_c1e2_11c7_048b31d80593["detachFiberAfterEffects()"]
  cf9f6da8_dd94_460c_451a_95fb5e125105 -->|calls| a393bc4d_dd4d_c1e2_11c7_048b31d80593
  style cf9f6da8_dd94_460c_451a_95fb5e125105 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberCommitWork.js lines 5099–5124

function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(
  deletedSubtreeRoot: Fiber,
) {
  while (nextEffect !== null) {
    const fiber = nextEffect;
    const sibling = fiber.sibling;
    const returnFiber = fiber.return;

    // Recursively traverse the entire deleted tree and clean up fiber fields.
    // This is more aggressive than ideal, and the long term goal is to only
    // have to detach the deleted tree at the root.
    detachFiberAfterEffects(fiber);
    if (fiber === deletedSubtreeRoot) {
      nextEffect = null;
      return;
    }

    if (sibling !== null) {
      sibling.return = returnFiber;
      nextEffect = sibling;
      return;
    }

    nextEffect = returnFiber;
  }
}

Domain

Subdomains

Frequently Asked Questions

What does commitPassiveUnmountEffectsInsideOfDeletedTree_complete() do?
commitPassiveUnmountEffectsInsideOfDeletedTree_complete() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCommitWork.js.
Where is commitPassiveUnmountEffectsInsideOfDeletedTree_complete() defined?
commitPassiveUnmountEffectsInsideOfDeletedTree_complete() is defined in packages/react-reconciler/src/ReactFiberCommitWork.js at line 5099.
What does commitPassiveUnmountEffectsInsideOfDeletedTree_complete() call?
commitPassiveUnmountEffectsInsideOfDeletedTree_complete() calls 1 function(s): detachFiberAfterEffects.
What calls commitPassiveUnmountEffectsInsideOfDeletedTree_complete()?
commitPassiveUnmountEffectsInsideOfDeletedTree_complete() is called by 1 function(s): commitPassiveUnmountEffectsInsideOfDeletedTree_begin.

Analyze Your Own Codebase

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

Try Supermodel Free