isSubPathIgnoringOptionals() — react Function Reference
Architecture documentation for the isSubPathIgnoringOptionals() function in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD dbb7a1df_33bc_b233_d5b9_e6272d48a7fc["isSubPathIgnoringOptionals()"] a451512c_09d1_62a9_9849_56979af31473["HIR.ts"] dbb7a1df_33bc_b233_d5b9_e6272d48a7fc -->|defined in| a451512c_09d1_62a9_9849_56979af31473 style dbb7a1df_33bc_b233_d5b9_e6272d48a7fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1683–1691
export function isSubPathIgnoringOptionals(
subpath: DependencyPath,
path: DependencyPath,
): boolean {
return (
subpath.length <= path.length &&
subpath.every((item, ix) => item.property === path[ix].property)
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isSubPathIgnoringOptionals() do?
isSubPathIgnoringOptionals() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is isSubPathIgnoringOptionals() defined?
isSubPathIgnoringOptionals() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1683.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free