Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

error.tsx

12 lines318 Bytes

1import { createLazyRoute } from '../../src'
2​
3export function Route(id: string) {
4 return createLazyRoute(id)({
5 component: () => <div>About route content</div>,
6 errorComponent: ({ error }) => (
7 <div>
8 Lazy Error: {error instanceof Error ? error.message : String(error)}
9 </div>
10 ),
11 })