commitHostTextUpdate() — react Function Reference
Architecture documentation for the commitHostTextUpdate() function in ReactFiberCommitHostEffects.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD eadbfdbc_c27b_7254_4c85_e7091d8d380e["commitHostTextUpdate()"] d39520cc_fe89_c0bc_424d_91bccdb79a69["ReactFiberCommitHostEffects.js"] eadbfdbc_c27b_7254_4c85_e7091d8d380e -->|defined in| d39520cc_fe89_c0bc_424d_91bccdb79a69 bc4a6de9_07dc_eca7_681a_10f692e08483["commitMutationEffectsOnFiber()"] bc4a6de9_07dc_eca7_681a_10f692e08483 -->|calls| eadbfdbc_c27b_7254_4c85_e7091d8d380e c1429200_7c6a_e13e_08a2_fa616dd968a7["trackHostMutation()"] eadbfdbc_c27b_7254_4c85_e7091d8d380e -->|calls| c1429200_7c6a_e13e_08a2_fa616dd968a7 style eadbfdbc_c27b_7254_4c85_e7091d8d380e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberCommitHostEffects.js lines 144–166
export function commitHostTextUpdate(
finishedWork: Fiber,
newText: string,
oldText: string,
) {
const textInstance: TextInstance = finishedWork.stateNode;
try {
if (__DEV__) {
runWithFiberInDEV(
finishedWork,
commitTextUpdate,
textInstance,
oldText,
newText,
);
} else {
commitTextUpdate(textInstance, oldText, newText);
}
trackHostMutation();
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does commitHostTextUpdate() do?
commitHostTextUpdate() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCommitHostEffects.js.
Where is commitHostTextUpdate() defined?
commitHostTextUpdate() is defined in packages/react-reconciler/src/ReactFiberCommitHostEffects.js at line 144.
What does commitHostTextUpdate() call?
commitHostTextUpdate() calls 1 function(s): trackHostMutation.
What calls commitHostTextUpdate()?
commitHostTextUpdate() is called by 1 function(s): commitMutationEffectsOnFiber.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free