Skip to content

Commit

Permalink
fix: remove usage of defineLoader (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored Oct 15, 2024
1 parent 8597d58 commit ef5cf82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions examples/playground/app/routes/_layout.loader-error.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { unstable_defineLoader as defineLoader } from "@remix-run/node";

export const loader = defineLoader(() => {
export function loader() {
throw new Error("This is an error");
});
}

export default function Component() {
return <p>You'll never see this</p>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { unstable_defineLoader as defineLoader } from "@remix-run/node";

export const loader = defineLoader(() => {
export function loader() {
throw new Error("This is an error");
});
}

0 comments on commit ef5cf82

Please sign in to comment.