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

Function createLazyFileRoute

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

Source from the content-addressed store, hash-verified

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

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