Skip to content

Commit

Permalink
Require JS on editor routes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Jan 10, 2024
1 parent 8a91a71 commit a2ef1d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routes/cms_.tutorials_.$postId/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions app/routes/cms_.tutorials_.new/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a2ef1d1

Please sign in to comment.