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

router.tsx

12 lines256 Bytes

1import { createRouter } from '@tanstack/solid-router'
2import { routeTree } from './routeTree.gen'
3​
4export function getRouter() {
5 const router = createRouter({
6 routeTree,
7 scrollRestoration: true,
8 defaultPreload: false,
9 })
10​
11 return router