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

Function getRouter

examples/react/start/src/router.tsx:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6// Create a new router instance
7export const getRouter = () => {
8 const router = createRouter({
9 routeTree,
10 context: {},
11
12 scrollRestoration: true,
13 defaultPreloadStaleTime: 0,
14 })
15
16 return router
17}

Callers

nothing calls this directly

Calls 1

createRouterFunction · 0.85

Tested by

no test coverage detected