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

Function getRouter

e2e/solid-start/basic/src/router.tsx:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { NotFound } from './components/NotFound'
5
6export function getRouter() {
7 const router = createRouter({
8 routeTree,
9 defaultPreload: 'intent',
10 defaultErrorComponent: DefaultCatchBoundary,
11 defaultNotFoundComponent: () => <NotFound />,
12 scrollRestoration: true,
13 })
14
15 return router
16}

Callers

nothing calls this directly

Calls 1

createRouterFunction · 0.90

Tested by

no test coverage detected