MCPcopy Create free account
hub / github.com/TanStack/router / createLazyFileRoute

Function createLazyFileRoute

packages/solid-router/src/fileRoute.ts:258–267  ·  view source on GitHub ↗
(id: TFilePath)

Source from the content-addressed store, hash-verified

256 }
257}
258export function createLazyFileRoute<
259 TFilePath extends keyof FileRoutesByPath,
260 TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'],
261>(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute<TRoute> {
262 if (typeof id === 'object') {
263 return new LazyRoute<TRoute>(id) as any
264 }
265
266 return (opts: LazyRouteOptions) => new LazyRoute<TRoute>({ id, ...opts })
267}

Callers 7

fileRoute.test.tsFile · 0.90
FileRouteFunction · 0.90
lazy-page.lazy.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected