Skip to content

Commit

Permalink
chore: tanstack router - add default error component (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Feb 24, 2025
1 parent 4d48138 commit 13f68c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/with-tanstack-router/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { routeTree } from "./routeTree.gen";
import "./app.css";

const router = createRouter({
defaultErrorComponent: (err) => <div>{err.error.stack}</div>,
routeTree,
defaultPreload: "intent",
defaultStaleTime: 5000,
Expand Down

0 comments on commit 13f68c1

Please sign in to comment.