Skip to content

Commit 13f68c1

Browse files
authored
chore: tanstack router - add default error component (#1828)
1 parent 4d48138 commit 13f68c1

File tree

1 file changed

+1
-0
lines changed
  • examples/with-tanstack-router/src

1 file changed

+1
-0
lines changed

examples/with-tanstack-router/src/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { routeTree } from "./routeTree.gen";
44
import "./app.css";
55

66
const router = createRouter({
7+
defaultErrorComponent: (err) => <div>{err.error.stack}</div>,
78
routeTree,
89
defaultPreload: "intent",
910
defaultStaleTime: 5000,

0 commit comments

Comments
 (0)