Skip to content

Commit 021f50b

Browse files
committed
add error component
1 parent fcbb9a5 commit 021f50b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

e2e/solid-start/serialization-adapters/src/routes/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Link, createFileRoute } from '@tanstack/solid-router'
22

33
export const Route = createFileRoute('/')({
4-
component: Home,
4+
component: Home,
5+
errorComponent: (e)=><div>{e.error.message} </div>,
56
})
67

78
function Home() {

e2e/solid-start/serialization-adapters/src/routes/ssr/stream.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export const Route = createFileRoute('/ssr/stream')({
1212
dataPromise,
1313
}
1414
},
15+
16+
errorComponent: (e)=><div>{e.error.message} </div>,
1517
component: RouteComponent,
1618
})
1719

0 commit comments

Comments
 (0)