From 97ac547e1ad7517fc9fc0194f4c121595e3592f0 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 15 Oct 2024 10:08:00 -0400 Subject: [PATCH 1/2] Update _layout.loader-error.tsx --- examples/playground/app/routes/_layout.loader-error.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/playground/app/routes/_layout.loader-error.tsx b/examples/playground/app/routes/_layout.loader-error.tsx index 6e83d401..7ef637bd 100644 --- a/examples/playground/app/routes/_layout.loader-error.tsx +++ b/examples/playground/app/routes/_layout.loader-error.tsx @@ -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

You'll never see this

; From 3ce7e27416c3da827a6dfb3604c2ba48719233f9 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 15 Oct 2024 10:08:39 -0400 Subject: [PATCH 2/2] Update _layout.resource-route-error.tsx --- .../playground/app/routes/_layout.resource-route-error.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/playground/app/routes/_layout.resource-route-error.tsx b/examples/playground/app/routes/_layout.resource-route-error.tsx index 3ec82fbc..85cdab85 100644 --- a/examples/playground/app/routes/_layout.resource-route-error.tsx +++ b/examples/playground/app/routes/_layout.resource-route-error.tsx @@ -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"); -}); +}