diff --git a/src/client/components/EditorCanvas.tsx b/src/client/components/EditorCanvas.tsx index 2f4eaf4..156db3e 100644 --- a/src/client/components/EditorCanvas.tsx +++ b/src/client/components/EditorCanvas.tsx @@ -1,3 +1,4 @@ +import { memo } from "react"; import "../../../node_modules/@excalidraw/excalidraw/dist/prod/index.css"; import { Excalidraw } from "@excalidraw/excalidraw"; import type { @@ -33,7 +34,7 @@ function sceneFromEditor( }; } -export function EditorCanvas({ +export const EditorCanvas = memo(function EditorCanvas({ activeId, scene, loading, @@ -58,4 +59,4 @@ export function EditorCanvas({ /> ); -} +});