MCPcopy Create free account
hub / github.com/TanStack/devtools / getRouter

Function getRouter

examples/react/bundling-repro/src/router.tsx:9–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8// Create a new router instance
9export 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}

Callers

nothing calls this directly

Calls 1

createRouterFunction · 0.85

Tested by

no test coverage detected