Async rendering dev route
All checks were successful
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2025-07-08 22:59:33 +02:00
parent bd26d46db2
commit 8ca45cb12e
3 changed files with 67 additions and 49 deletions

View File

@@ -10,53 +10,53 @@
import { Route as rootRouteImport } from './routes/__root'
import { Route as BlankRouteImport } from './routes/blank'
import { Route as AsyncRenderingRouteImport } from './routes/async-rendering'
import { Route as IndexRouteImport } from './routes/index'
import { Route as DevAsyncRenderingRouteImport } from './routes/dev/async-rendering'
const BlankRoute = BlankRouteImport.update({
id: '/blank',
path: '/blank',
getParentRoute: () => rootRouteImport,
} as any)
const AsyncRenderingRoute = AsyncRenderingRouteImport.update({
id: '/async-rendering',
path: '/async-rendering',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const DevAsyncRenderingRoute = DevAsyncRenderingRouteImport.update({
id: '/dev/async-rendering',
path: '/dev/async-rendering',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/async-rendering': typeof AsyncRenderingRoute
'/blank': typeof BlankRoute
'/dev/async-rendering': typeof DevAsyncRenderingRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/async-rendering': typeof AsyncRenderingRoute
'/blank': typeof BlankRoute
'/dev/async-rendering': typeof DevAsyncRenderingRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/async-rendering': typeof AsyncRenderingRoute
'/blank': typeof BlankRoute
'/dev/async-rendering': typeof DevAsyncRenderingRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/async-rendering' | '/blank'
fullPaths: '/' | '/blank' | '/dev/async-rendering'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/async-rendering' | '/blank'
id: '__root__' | '/' | '/async-rendering' | '/blank'
to: '/' | '/blank' | '/dev/async-rendering'
id: '__root__' | '/' | '/blank' | '/dev/async-rendering'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AsyncRenderingRoute: typeof AsyncRenderingRoute
BlankRoute: typeof BlankRoute
DevAsyncRenderingRoute: typeof DevAsyncRenderingRoute
}
declare module '@tanstack/react-router' {
@@ -68,13 +68,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof BlankRouteImport
parentRoute: typeof rootRouteImport
}
'/async-rendering': {
id: '/async-rendering'
path: '/async-rendering'
fullPath: '/async-rendering'
preLoaderRoute: typeof AsyncRenderingRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
@@ -82,13 +75,20 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/dev/async-rendering': {
id: '/dev/async-rendering'
path: '/dev/async-rendering'
fullPath: '/dev/async-rendering'
preLoaderRoute: typeof DevAsyncRenderingRouteImport
parentRoute: typeof rootRouteImport
}
}
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AsyncRenderingRoute: AsyncRenderingRoute,
BlankRoute: BlankRoute,
DevAsyncRenderingRoute: DevAsyncRenderingRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)