Skip to content

Commit acf36f0

Browse files
committed
more
1 parent 6ac4af7 commit acf36f0

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

packages/react-router/src/fileRoute.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react-hooks/rules-of-hooks */
21
import warning from 'tiny-warning'
32
import { 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-
*/
5749
export 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-
*/
295278
export 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-
*/
323302
export function createLazyFileRoute<
324303
TFilePath extends keyof FileRoutesByPath,
325304
TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'],

packages/router-core/src/scroll-restoration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ export const scrollRestorationCache = createScrollRestorationCache()
8383
* The `location.href` is used as a fallback to support the use case where the location state is not available like the initial render.
8484
*/
8585

86-
/**
87-
* Default scroll restoration cache key: location state key or full href.
88-
*/
8986
/**
9087
* Default scroll restoration cache key: location state key or full href.
9188
*/

0 commit comments

Comments
 (0)