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

router.tsx

13 lines281 Bytes

1import { createRouter } from '@tanstack/react-router'
2import { routeTree } from './routeTree.gen'
3​
4export const getRouter = () => {
5 const router = createRouter({
6 routeTree,
7 context: {},
8 scrollRestoration: true,
9 defaultPreloadStaleTime: 0,
10 })
11​
12 return router