Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove usage of defineLoader #441

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
});
}
Loading