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

Callers

nothing calls this directly

Calls 1

createRouterFunction · 0.85

Tested by

no test coverage detected