MCPcopy
hub / github.com/TanStack/router / getRouteApi

Function getRouteApi

packages/solid-router/src/route.tsx:82–87  ·  view source on GitHub ↗
(id: ConstrainLiteral<TId, RouteIds<TRouter['routeTree']>>)

Source from the content-addressed store, hash-verified

80}
81
82export function getRouteApi<
83 const TId,
84 TRouter extends AnyRouter = RegisteredRouter,
85>(id: ConstrainLiteral<TId, RouteIds<TRouter['routeTree']>>) {
86 return new RouteApi<TId, TRouter>({ id })
87}
88
89export class RouteApi<
90 TId,

Callers 13

route.test.tsxFile · 0.90
PostsComponentFunction · 0.90
runTestFunction · 0.90
fileRoute.test.tsFile · 0.90
inside.tsxFile · 0.90
inside.tsxFile · 0.90
_layout.inside.tsxFile · 0.90

Calls

no outgoing calls

Tested by 2

PostsComponentFunction · 0.72
runTestFunction · 0.72