1- /* eslint-disable react-hooks/rules-of-hooks */
21import warning from 'tiny-warning'
32import { createRoute } from './route'
43
@@ -47,13 +46,6 @@ import type { UseRouteContextRoute } from './useRouteContext'
4746 * @returns A function that accepts Route options and returns a Route instance.
4847 * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createFileRouteFunction
4948 */
50- /**
51- * Creates a file-based Route factory for a given path.
52- * Used by file-based routing to associate a file with a route. The returned
53- * function accepts standard route options; the path is typically auto-managed
54- * by the generator.
55- * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createFileRouteFunction
56- */
5749export function createFileRoute <
5850 TFilePath extends keyof FileRoutesByPath ,
5951 TParentRoute extends AnyRoute = FileRoutesByPath [ TFilePath ] [ 'parentRoute' ] ,
@@ -167,11 +159,6 @@ export class FileRoute<
167159 }
168160}
169161
170- /**
171- @deprecated It's recommended not to split loaders into separate files.
172- Instead, place the loader function in the the main route file, inside the
173- `createFileRoute('/path/to/file)(options)` options.
174- */
175162/**
176163 @deprecated It's recommended not to split loaders into separate files.
177164 Instead, place the loader function in the main route file via `createFileRoute`.
@@ -288,10 +275,6 @@ export class LazyRoute<TRoute extends AnyRoute> {
288275 * @returns A function that accepts lazy route options and returns a `LazyRoute`.
289276 * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createLazyRouteFunction
290277 */
291- /**
292- * Create a lazily-configurable code-based route stub by ID.
293- * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createLazyRouteFunction
294- */
295278export function createLazyRoute <
296279 TRouter extends AnyRouter = RegisteredRouter ,
297280 TId extends string = string ,
@@ -316,10 +299,6 @@ export function createLazyRoute<
316299 * @returns A function that accepts lazy route options and returns a `LazyRoute`.
317300 * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createLazyFileRouteFunction
318301 */
319- /**
320- * Create a lazily-configurable file-based route stub by file path.
321- * @link https://tanstack.com/router/latest/docs/framework/react/api/router/createLazyFileRouteFunction
322- */
323302export function createLazyFileRoute <
324303 TFilePath extends keyof FileRoutesByPath ,
325304 TRoute extends FileRoutesByPath [ TFilePath ] [ 'preLoaderRoute' ] ,
0 commit comments