()
| 6 | import { NotFound } from './components/NotFound' |
| 7 | |
| 8 | export function getRouter() { |
| 9 | const queryClient = new QueryClient() |
| 10 | const router = createRouter({ |
| 11 | routeTree, |
| 12 | context: { queryClient }, |
| 13 | scrollRestoration: true, |
| 14 | defaultPreload: 'intent', |
| 15 | defaultErrorComponent: DefaultCatchBoundary, |
| 16 | defaultNotFoundComponent: () => <NotFound />, |
| 17 | }) |
| 18 | setupRouterSsrQueryIntegration({ |
| 19 | router, |
| 20 | queryClient, |
| 21 | }) |
| 22 | return router |
| 23 | } |
nothing calls this directly
no test coverage detected