trackHostMutation() — react Function Reference
Architecture documentation for the trackHostMutation() function in ReactFiberMutationTracking.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c1429200_7c6a_e13e_08a2_fa616dd968a7["trackHostMutation()"] 1a6f1ac9_f5f1_3a2e_6503_c920a4d4a8ae["ReactFiberMutationTracking.js"] c1429200_7c6a_e13e_08a2_fa616dd968a7 -->|defined in| 1a6f1ac9_f5f1_3a2e_6503_c920a4d4a8ae 14488ed6_0070_cb72_08ff_37fc5c860d29["recursivelyInsertNewFiber()"] 14488ed6_0070_cb72_08ff_37fc5c860d29 -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 d5ea8670_901e_392b_55a7_640c298b5971["recursivelyInsertClonesFromExistingTree()"] d5ea8670_901e_392b_55a7_640c298b5971 -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 5da5a209_accd_7ea4_eb0a_748553ba2647["recursivelyInsertClones()"] 5da5a209_accd_7ea4_eb0a_748553ba2647 -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 585297c1_5fbc_f778_b0fa_7f11968cec48["insertDestinationClonesOfFiber()"] 585297c1_5fbc_f778_b0fa_7f11968cec48 -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 eadbfdbc_c27b_7254_4c85_e7091d8d380e["commitHostTextUpdate()"] eadbfdbc_c27b_7254_4c85_e7091d8d380e -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 611dd918_1f79_6852_bb75_eadf21894f4e["commitHostResetTextContent()"] 611dd918_1f79_6852_bb75_eadf21894f4e -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 9f234217_abda_d465_6fbb_2e48f74fc4cc["commitShowHideHostTextInstance()"] 9f234217_abda_d465_6fbb_2e48f74fc4cc -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 style c1429200_7c6a_e13e_08a2_fa616dd968a7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberMutationTracking.js lines 45–55
export function trackHostMutation(): void {
// This is extremely hot function that must be inlined. Don't add more stuff.
if (enableViewTransition) {
viewTransitionMutationContext = true;
} else if (enableDefaultTransitionIndicator) {
// We only set this if enableViewTransition is not on. Otherwise we track
// it on the viewTransitionMutationContext and collect it when we pop
// to avoid more than a single operation in this hot path.
rootMutationContext = true;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does trackHostMutation() do?
trackHostMutation() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberMutationTracking.js.
Where is trackHostMutation() defined?
trackHostMutation() is defined in packages/react-reconciler/src/ReactFiberMutationTracking.js at line 45.
What calls trackHostMutation()?
trackHostMutation() is called by 7 function(s): commitHostResetTextContent, commitHostTextUpdate, commitShowHideHostTextInstance, insertDestinationClonesOfFiber, recursivelyInsertClones, recursivelyInsertClonesFromExistingTree, recursivelyInsertNewFiber.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free