Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

__virtual.ts

13 lines345 Bytes

1import {
2 defineVirtualSubtreeConfig,
3 index,
4 physical,
5 route,
6} from '@tanstack/virtual-file-routes'
7​
8// this just shows that you can use an async function to define your virtual routes
9export default defineVirtualSubtreeConfig(async () => [
10 index('home.tsx'),
11 route('$postId', 'details.tsx'),
12 physical('/inception', 'lets-go'),
13])