getComponentByRoute() — astro Function Reference
Architecture documentation for the getComponentByRoute() function in pipeline.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2aa59556_8548_b5bf_a6a6_c3b895612816["getComponentByRoute()"] 7feea19b_1eb1_3680_d050_0ea7bb95b6d3["ContainerPipeline"] 2aa59556_8548_b5bf_a6a6_c3b895612816 -->|defined in| 7feea19b_1eb1_3680_d050_0ea7bb95b6d3 735ba179_276d_3c4c_7c5b_ae306468a54e["tryRewrite()"] 735ba179_276d_3c4c_7c5b_ae306468a54e -->|calls| 2aa59556_8548_b5bf_a6a6_c3b895612816 style 2aa59556_8548_b5bf_a6a6_c3b895612816 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/container/pipeline.ts lines 84–90
async getComponentByRoute(routeData: RouteData): Promise<ComponentInstance> {
const page = this.#componentsInterner.get(routeData);
if (page) {
return page.page();
}
throw new Error("Couldn't find component for route " + routeData.pathname);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getComponentByRoute() do?
getComponentByRoute() is a function in the astro codebase, defined in packages/astro/src/container/pipeline.ts.
Where is getComponentByRoute() defined?
getComponentByRoute() is defined in packages/astro/src/container/pipeline.ts at line 84.
What calls getComponentByRoute()?
getComponentByRoute() is called by 1 function(s): tryRewrite.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free