Skip to content

Commit 65d565c

Browse files
fix route trees (#8197)
1 parent 3c6c959 commit 65d565c

3 files changed

Lines changed: 57 additions & 57 deletions

File tree

e2e/react-router/issue-7120/src/routeTree.gen.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
import { Route as rootRouteImport } from './routes/__root'
12-
import { Route as PostsRouteImport } from './routes/posts'
1312
import { Route as IndexRouteImport } from './routes/index'
13+
import { Route as PostsRouteImport } from './routes/posts'
1414

15-
const PostsRoute = PostsRouteImport.update({
16-
id: '/posts',
17-
path: '/posts',
18-
getParentRoute: () => rootRouteImport,
19-
} as any).lazy(() => import('./routes/posts.lazy').then((d) => d.Route))
2015
const IndexRoute = IndexRouteImport.update({
2116
id: '/',
2217
path: '/',
2318
getParentRoute: () => rootRouteImport,
2419
} as any)
20+
const PostsRoute = PostsRouteImport.update({
21+
id: '/posts',
22+
path: '/posts',
23+
getParentRoute: () => rootRouteImport,
24+
} as any).lazy(() => import('./routes/posts.lazy').then((d) => d.Route))
2525

2626
export interface FileRoutesByFullPath {
2727
'/': typeof IndexRoute
@@ -51,20 +51,20 @@ export interface RootRouteChildren {
5151

5252
declare module '@tanstack/react-router' {
5353
interface FileRoutesByPath {
54-
'/posts': {
55-
id: '/posts'
56-
path: '/posts'
57-
fullPath: '/posts'
58-
preLoaderRoute: typeof PostsRouteImport
59-
parentRoute: typeof rootRouteImport
60-
}
6154
'/': {
6255
id: '/'
6356
path: '/'
6457
fullPath: '/'
6558
preLoaderRoute: typeof IndexRouteImport
6659
parentRoute: typeof rootRouteImport
6760
}
61+
'/posts': {
62+
id: '/posts'
63+
path: '/posts'
64+
fullPath: '/posts'
65+
preLoaderRoute: typeof PostsRouteImport
66+
parentRoute: typeof rootRouteImport
67+
}
6868
}
6969
}
7070

e2e/react-router/issue-7457/src/routeTree.gen.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
import { Route as rootRouteImport } from './routes/__root'
12-
import { Route as AnotherRouteImport } from './routes/another'
1312
import { Route as IndexRouteImport } from './routes/index'
13+
import { Route as AnotherRouteImport } from './routes/another'
1414

15-
const AnotherRoute = AnotherRouteImport.update({
16-
id: '/another',
17-
path: '/another',
18-
getParentRoute: () => rootRouteImport,
19-
} as any)
2015
const IndexRoute = IndexRouteImport.update({
2116
id: '/',
2217
path: '/',
2318
getParentRoute: () => rootRouteImport,
2419
} as any)
20+
const AnotherRoute = AnotherRouteImport.update({
21+
id: '/another',
22+
path: '/another',
23+
getParentRoute: () => rootRouteImport,
24+
} as any)
2525

2626
export interface FileRoutesByFullPath {
2727
'/': typeof IndexRoute
@@ -51,20 +51,20 @@ export interface RootRouteChildren {
5151

5252
declare module '@tanstack/react-router' {
5353
interface FileRoutesByPath {
54-
'/another': {
55-
id: '/another'
56-
path: '/another'
57-
fullPath: '/another'
58-
preLoaderRoute: typeof AnotherRouteImport
59-
parentRoute: typeof rootRouteImport
60-
}
6154
'/': {
6255
id: '/'
6356
path: '/'
6457
fullPath: '/'
6558
preLoaderRoute: typeof IndexRouteImport
6659
parentRoute: typeof rootRouteImport
6760
}
61+
'/another': {
62+
id: '/another'
63+
path: '/another'
64+
fullPath: '/another'
65+
preLoaderRoute: typeof AnotherRouteImport
66+
parentRoute: typeof rootRouteImport
67+
}
6868
}
6969
}
7070

e2e/solid-start/selective-ssr/src/routeTree.gen.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,15 @@
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
import { Route as rootRouteImport } from './routes/__root'
12-
import { Route as SsrFalsePendingMinRouteImport } from './routes/ssr-false-pending-min'
13-
import { Route as PostsRouteImport } from './routes/posts'
14-
import { Route as DataOnlyPendingComponentRouteImport } from './routes/data-only-pending-component'
1512
import { Route as IndexRouteImport } from './routes/index'
13+
import { Route as DataOnlyPendingComponentRouteImport } from './routes/data-only-pending-component'
14+
import { Route as PostsRouteImport } from './routes/posts'
15+
import { Route as SsrFalsePendingMinRouteImport } from './routes/ssr-false-pending-min'
1616
import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
1717

18-
const SsrFalsePendingMinRoute = SsrFalsePendingMinRouteImport.update({
19-
id: '/ssr-false-pending-min',
20-
path: '/ssr-false-pending-min',
21-
getParentRoute: () => rootRouteImport,
22-
} as any)
23-
const PostsRoute = PostsRouteImport.update({
24-
id: '/posts',
25-
path: '/posts',
18+
const IndexRoute = IndexRouteImport.update({
19+
id: '/',
20+
path: '/',
2621
getParentRoute: () => rootRouteImport,
2722
} as any)
2823
const DataOnlyPendingComponentRoute =
@@ -31,9 +26,14 @@ const DataOnlyPendingComponentRoute =
3126
path: '/data-only-pending-component',
3227
getParentRoute: () => rootRouteImport,
3328
} as any)
34-
const IndexRoute = IndexRouteImport.update({
35-
id: '/',
36-
path: '/',
29+
const PostsRoute = PostsRouteImport.update({
30+
id: '/posts',
31+
path: '/posts',
32+
getParentRoute: () => rootRouteImport,
33+
} as any)
34+
const SsrFalsePendingMinRoute = SsrFalsePendingMinRouteImport.update({
35+
id: '/ssr-false-pending-min',
36+
path: '/ssr-false-pending-min',
3737
getParentRoute: () => rootRouteImport,
3838
} as any)
3939
const PostsPostIdRoute = PostsPostIdRouteImport.update({
@@ -97,18 +97,11 @@ export interface RootRouteChildren {
9797

9898
declare module '@tanstack/solid-router' {
9999
interface FileRoutesByPath {
100-
'/ssr-false-pending-min': {
101-
id: '/ssr-false-pending-min'
102-
path: '/ssr-false-pending-min'
103-
fullPath: '/ssr-false-pending-min'
104-
preLoaderRoute: typeof SsrFalsePendingMinRouteImport
105-
parentRoute: typeof rootRouteImport
106-
}
107-
'/posts': {
108-
id: '/posts'
109-
path: '/posts'
110-
fullPath: '/posts'
111-
preLoaderRoute: typeof PostsRouteImport
100+
'/': {
101+
id: '/'
102+
path: '/'
103+
fullPath: '/'
104+
preLoaderRoute: typeof IndexRouteImport
112105
parentRoute: typeof rootRouteImport
113106
}
114107
'/data-only-pending-component': {
@@ -118,11 +111,18 @@ declare module '@tanstack/solid-router' {
118111
preLoaderRoute: typeof DataOnlyPendingComponentRouteImport
119112
parentRoute: typeof rootRouteImport
120113
}
121-
'/': {
122-
id: '/'
123-
path: '/'
124-
fullPath: '/'
125-
preLoaderRoute: typeof IndexRouteImport
114+
'/posts': {
115+
id: '/posts'
116+
path: '/posts'
117+
fullPath: '/posts'
118+
preLoaderRoute: typeof PostsRouteImport
119+
parentRoute: typeof rootRouteImport
120+
}
121+
'/ssr-false-pending-min': {
122+
id: '/ssr-false-pending-min'
123+
path: '/ssr-false-pending-min'
124+
fullPath: '/ssr-false-pending-min'
125+
preLoaderRoute: typeof SsrFalsePendingMinRouteImport
126126
parentRoute: typeof rootRouteImport
127127
}
128128
'/posts/$postId': {

0 commit comments

Comments
 (0)