Home / Function/ markCloned() — react Function Reference

markCloned() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  87042ca2_c4f2_9b17_b272_b821412c5923["markCloned()"]
  6b05669d_2f09_63a5_e79f_0afc195f25a3["ReactFiberCompleteWork.js"]
  87042ca2_c4f2_9b17_b272_b821412c5923 -->|defined in| 6b05669d_2f09_63a5_e79f_0afc195f25a3
  17f65ca7_1e68_0419_b46a_9bf4b1b54b06["updateHostComponent()"]
  17f65ca7_1e68_0419_b46a_9bf4b1b54b06 -->|calls| 87042ca2_c4f2_9b17_b272_b821412c5923
  18c23582_bfc0_7788_1b51_ade9a9ec414c["updateHostText()"]
  18c23582_bfc0_7788_1b51_ade9a9ec414c -->|calls| 87042ca2_c4f2_9b17_b272_b821412c5923
  0b8db832_87fd_e560_8aa8_e2b319c81626["completeWork()"]
  0b8db832_87fd_e560_8aa8_e2b319c81626 -->|calls| 87042ca2_c4f2_9b17_b272_b821412c5923
  style 87042ca2_c4f2_9b17_b272_b821412c5923 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberCompleteWork.js lines 207–211

function markCloned(workInProgress: Fiber) {
  if (supportsPersistence) {
    workInProgress.flags |= Cloned;
  }
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free