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