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

Function createLazyFileRoute

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

Source from the content-addressed store, hash-verified

262 }
263}
264export function createLazyFileRoute<
265 TFilePath extends keyof FileRoutesByPath,
266 TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'],
267>(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute<TRoute> {
268 if (typeof id === 'object') {
269 return new LazyRoute<TRoute>(id) as any
270 }
271
272 return (opts: LazyRouteOptions) => new LazyRoute<TRoute>({ id, ...opts })
273}

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