MCPcopy
hub / github.com/TanStack/router / createRouter

Function createRouter

examples/react/basic-ssr-file-based/src/router.tsx:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { routeTree } from './routeTree.gen'
3
4export function createRouter() {
5 return createReactRouter({
6 routeTree,
7 context: {
8 head: '',
9 },
10 defaultPreload: 'intent',
11 scrollRestoration: true,
12 })
13}
14
15declare module '@tanstack/react-router' {
16 interface Register {

Callers 2

entry-client.tsxFile · 0.90
renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected