areEqualPaths() — react Function Reference
Architecture documentation for the areEqualPaths() function in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 96f724f9_c647_5d60_5eeb_d1554b8ee60d["areEqualPaths()"] 18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"] 96f724f9_c647_5d60_5eeb_d1554b8ee60d -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec 55f3fce3_0db5_e260_b549_d5a721561462["propagateScopeDependenciesHIR()"] 55f3fce3_0db5_e260_b549_d5a721561462 -->|calls| 96f724f9_c647_5d60_5eeb_d1554b8ee60d style 96f724f9_c647_5d60_5eeb_d1554b8ee60d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1661–1669
export function areEqualPaths(a: DependencyPath, b: DependencyPath): boolean {
return (
a.length === b.length &&
a.every(
(item, ix) =>
item.property === b[ix].property && item.optional === b[ix].optional,
)
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does areEqualPaths() do?
areEqualPaths() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is areEqualPaths() defined?
areEqualPaths() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1661.
What calls areEqualPaths()?
areEqualPaths() is called by 1 function(s): propagateScopeDependenciesHIR.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free