MCPcopy Index your code
hub / github.com/TanStack/router / createLazyRoute

Function createLazyRoute

packages/solid-router/src/fileRoute.ts:252–263  ·  view source on GitHub ↗
(id: ConstrainLiteral<TId, RouteIds<TRouter['routeTree']>>)

Source from the content-addressed store, hash-verified

250}
251
252export function createLazyRoute<
253 TRouter extends AnyRouter = RegisteredRouter,
254 TId extends string = string,
255 TRoute extends AnyRoute = RouteById<TRouter['routeTree'], TId>,
256>(id: ConstrainLiteral<TId, RouteIds<TRouter['routeTree']>>) {
257 return (opts: LazyRouteOptions) => {
258 return new LazyRoute<TRoute>({
259 id: id,
260 ...opts,
261 })
262 }
263}
264export function createLazyFileRoute<
265 TFilePath extends keyof FileRoutesByPath,
266 TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'],

Callers 8

fileRoute.test.tsFile · 0.90
RouteFunction · 0.90
RouteFunction · 0.90
posts.lazy.tsxFile · 0.90
posts.lazy.tsxFile · 0.90
posts.lazy.tsxFile · 0.90
posts.lazy.tsxFile · 0.90
posts.lazy.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected