Home / Function/ isOnlyNewMounts() — react Function Reference

isOnlyNewMounts() — react Function Reference

Architecture documentation for the isOnlyNewMounts() function in ReactFiberCompleteWork.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  aaabecbd_5898_fbd7_8415_625b28a23f43["isOnlyNewMounts()"]
  6b05669d_2f09_63a5_e79f_0afc195f25a3["ReactFiberCompleteWork.js"]
  aaabecbd_5898_fbd7_8415_625b28a23f43 -->|defined in| 6b05669d_2f09_63a5_e79f_0afc195f25a3
  0b8db832_87fd_e560_8aa8_e2b319c81626["completeWork()"]
  0b8db832_87fd_e560_8aa8_e2b319c81626 -->|calls| aaabecbd_5898_fbd7_8415_625b28a23f43
  style aaabecbd_5898_fbd7_8415_625b28a23f43 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberCompleteWork.js lines 770–779

function isOnlyNewMounts(tail: Fiber): boolean {
  let fiber: null | Fiber = tail;
  while (fiber !== null) {
    if (fiber.alternate !== null) {
      return false;
    }
    fiber = fiber.sibling;
  }
  return true;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isOnlyNewMounts() do?
isOnlyNewMounts() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCompleteWork.js.
Where is isOnlyNewMounts() defined?
isOnlyNewMounts() is defined in packages/react-reconciler/src/ReactFiberCompleteWork.js at line 770.
What calls isOnlyNewMounts()?
isOnlyNewMounts() is called by 1 function(s): completeWork.

Analyze Your Own Codebase

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

Try Supermodel Free