()
| 7 | |
| 8 | // Create a new router instance |
| 9 | export const getRouter = () => { |
| 10 | const rqContext = TanstackQuery.getContext() |
| 11 | |
| 12 | const router = createRouter({ |
| 13 | routeTree, |
| 14 | context: { |
| 15 | ...rqContext, |
| 16 | }, |
| 17 | |
| 18 | defaultPreload: 'intent', |
| 19 | }) |
| 20 | |
| 21 | setupRouterSsrQueryIntegration({ router, queryClient: rqContext.queryClient }) |
| 22 | |
| 23 | return router |
| 24 | } |
nothing calls this directly
no test coverage detected