From a2ef1d1620a5186db7ae5a901f335ea27af3eb43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Xalambr=C3=AD?= Date: Wed, 10 Jan 2024 12:58:51 -0500 Subject: [PATCH] Require JS on editor routes --- app/routes/cms_.tutorials_.$postId/route.tsx | 2 ++ app/routes/cms_.tutorials_.new/route.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/routes/cms_.tutorials_.$postId/route.tsx b/app/routes/cms_.tutorials_.$postId/route.tsx index cde5db5..b0136a3 100644 --- a/app/routes/cms_.tutorials_.$postId/route.tsx +++ b/app/routes/cms_.tutorials_.$postId/route.tsx @@ -26,6 +26,8 @@ import { assertUUID } from "~/utils/uuid"; import { Preview, Textbox } from "../components.editor/route"; import { Provider, useEditor } from "../components.editor/use-editor"; +export const handle: SDX.Handle = { hydrate: true }; + export async function loader({ request, params, context }: LoaderFunctionArgs) { await SessionStorage.requireUser(context, request); diff --git a/app/routes/cms_.tutorials_.new/route.tsx b/app/routes/cms_.tutorials_.new/route.tsx index 5ad97bd..fc1cef5 100644 --- a/app/routes/cms_.tutorials_.new/route.tsx +++ b/app/routes/cms_.tutorials_.new/route.tsx @@ -23,6 +23,8 @@ import { assertUUID } from "~/utils/uuid"; import { Preview, Textbox } from "../components.editor/route"; import { Provider, useEditor } from "../components.editor/use-editor"; +export const handle: SDX.Handle = { hydrate: true }; + export async function action({ request, context }: ActionFunctionArgs) { let { id: authorId } = await SessionStorage.requireUser(context, request);