update() — react Function Reference
Architecture documentation for the update() function in PruneInitializationDependencies.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4916319a_373b_4df8_3e74_93be0bd89391["update()"] a4218b71_262a_ca43_13e7_98514ab3bd4e["PruneInitializationDependencies.ts"] 4916319a_373b_4df8_3e74_93be0bd89391 -->|defined in| a4218b71_262a_ca43_13e7_98514ab3bd4e e1291b8d_d23d_3a82_5ffa_61cb16b82596["visitInstruction()"] e1291b8d_d23d_3a82_5ffa_61cb16b82596 -->|calls| 4916319a_373b_4df8_3e74_93be0bd89391 07c13165_58f3_ceca_b2dc_dd9078d09c17["getAliases()"] 07c13165_58f3_ceca_b2dc_dd9078d09c17 -->|calls| 4916319a_373b_4df8_3e74_93be0bd89391 style 4916319a_373b_4df8_3e74_93be0bd89391 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneInitializationDependencies.ts lines 221–230
function update(
map: Map<IdentifierId, Map<PropertyLiteral, IdentifierId>>,
key: IdentifierId,
path: PropertyLiteral,
value: IdentifierId,
): void {
const inner = map.get(key) ?? new Map();
inner.set(path, value);
map.set(key, inner);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does update() do?
update() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneInitializationDependencies.ts.
Where is update() defined?
update() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneInitializationDependencies.ts at line 221.
What calls update()?
update() is called by 2 function(s): getAliases, visitInstruction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free