Skip to content

Commit

Permalink
Add ErrorBoundary to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Jan 15, 2024
1 parent 0dbffbd commit 5614674
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/routes/_layout/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ export default function Component() {
);
}

export function ErrorBoundary() {
return (
<>
<Header />

<div className="p-4">
<h1>Something went wrong</h1>
</div>
</>
);
}

function Header() {
let user = useUser();
let t = useT("nav");
Expand Down

0 comments on commit 5614674

Please sign in to comment.