getComponentByRoute() — astro Function Reference
Architecture documentation for the getComponentByRoute() function in pipeline.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d52ff83d_4730_519f_5ab3_9c2089ed4d5d["getComponentByRoute()"] 40ba2769_779c_63d9_4084_f451c2f62cd9["AppPipeline"] d52ff83d_4730_519f_5ab3_9c2089ed4d5d -->|defined in| 40ba2769_779c_63d9_4084_f451c2f62cd9 d3c66bd3_1cd3_b12a_a18d_4f93dff5df0c["tryRewrite()"] d3c66bd3_1cd3_b12a_a18d_4f93dff5df0c -->|calls| d52ff83d_4730_519f_5ab3_9c2089ed4d5d d47724cb_d240_2604_40ed_cb44bb423eb6["getModuleForRoute()"] d52ff83d_4730_519f_5ab3_9c2089ed4d5d -->|calls| d47724cb_d240_2604_40ed_cb44bb423eb6 style d52ff83d_4730_519f_5ab3_9c2089ed4d5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/app/pipeline.ts lines 80–83
async getComponentByRoute(routeData: RouteData): Promise<ComponentInstance> {
const module = await this.getModuleForRoute(routeData);
return module.page();
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getComponentByRoute() do?
getComponentByRoute() is a function in the astro codebase, defined in packages/astro/src/core/app/pipeline.ts.
Where is getComponentByRoute() defined?
getComponentByRoute() is defined in packages/astro/src/core/app/pipeline.ts at line 80.
What does getComponentByRoute() call?
getComponentByRoute() calls 1 function(s): getModuleForRoute.
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