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

Function getRouter

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

Source from the content-addressed store, hash-verified

8
9// Create a new router instance
10export function getRouter() {
11 return createTanstackRouter({
12 routeTree,
13 scrollRestoration: true,
14 defaultPreloadStaleTime: 0,
15 defaultNotFoundComponent: NotFound,
16 })
17}

Callers 1

main.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected