Skip to content

Commit

Permalink
Revert "chore: remove boom"
Browse files Browse the repository at this point in the history
This reverts commit 10606fc.
  • Loading branch information
hi-ogawa committed May 9, 2023
1 parent 56244cd commit 5f97a51
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ function Navbar({
/>
<div className="flex-1">{title}</div>
{menu}
<div className="flex-none flex items-center">
<button
className="antd-btn antd-btn-default px-1"
onClick={() => {
throw new Error("Boom!");
}}
>
Boom!
</button>
</div>
{!user && (
<div className="flex-none flex items-center">
<Link
Expand Down
5 changes: 5 additions & 0 deletions app/routes/dev/throw-loader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { LoaderFunction } from "@remix-run/server-runtime";

export const loader: LoaderFunction = async () => {
throw new Error("Boom🔥");
};
3 changes: 3 additions & 0 deletions app/routes/dev/throw-render.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Page() {
throw new Error("Page Boom!");
}

0 comments on commit 5f97a51

Please sign in to comment.