deriveMinimalDependencies() — react Function Reference
Architecture documentation for the deriveMinimalDependencies() function in DeriveMinimalDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3007052f_a4b8_b5ea_a419_9f2abc9f4286["deriveMinimalDependencies()"] ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1["ReactiveScopeDependencyTreeHIR"] 3007052f_a4b8_b5ea_a419_9f2abc9f4286 -->|defined in| ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1 55f3fce3_0db5_e260_b549_d5a721561462["propagateScopeDependenciesHIR()"] 55f3fce3_0db5_e260_b549_d5a721561462 -->|calls| 3007052f_a4b8_b5ea_a419_9f2abc9f4286 ca434b67_031d_2bec_f10c_3b8a790002ed["inferMinimalDependencies()"] ca434b67_031d_2bec_f10c_3b8a790002ed -->|calls| 3007052f_a4b8_b5ea_a419_9f2abc9f4286 704d44a5_bab3_deab_2a77_1f49b45af20b["collectMinimalDependenciesInSubtree()"] 3007052f_a4b8_b5ea_a419_9f2abc9f4286 -->|calls| 704d44a5_bab3_deab_2a77_1f49b45af20b style 3007052f_a4b8_b5ea_a419_9f2abc9f4286 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts lines 183–196
deriveMinimalDependencies(): Set<ReactiveScopeDependency> {
const results = new Set<ReactiveScopeDependency>();
for (const [rootId, rootNode] of this.#deps.entries()) {
collectMinimalDependenciesInSubtree(
rootNode,
rootNode.reactive,
rootId,
[],
results,
);
}
return results;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does deriveMinimalDependencies() do?
deriveMinimalDependencies() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts.
Where is deriveMinimalDependencies() defined?
deriveMinimalDependencies() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts at line 183.
What does deriveMinimalDependencies() call?
deriveMinimalDependencies() calls 1 function(s): collectMinimalDependenciesInSubtree.
What calls deriveMinimalDependencies()?
deriveMinimalDependencies() is called by 2 function(s): inferMinimalDependencies, propagateScopeDependenciesHIR.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free