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

Function createRouter

examples/react/offline-transactions/src/router.tsx:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { routeTree } from './routeTree.gen'
3
4export function createRouter() {
5 const router = createTanStackRouter({
6 routeTree,
7 defaultPreload: `intent`,
8 scrollRestoration: true,
9 })
10
11 return router
12}
13
14export async function getRouter() {
15 return createRouter()

Callers 1

getRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected