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

Function getRouter

examples/react/start-cloudflare/src/router.tsx:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { routeTree } from './routeTree.gen'
3
4export const getRouter = () => {
5 const router = createRouter({
6 routeTree,
7 context: {},
8 scrollRestoration: true,
9 defaultPreloadStaleTime: 0,
10 })
11
12 return router
13}

Callers

nothing calls this directly

Calls 1

createRouterFunction · 0.85

Tested by

no test coverage detected