Compare commits

...

3 Commits

Author SHA1 Message Date
ruinivist 1dc75b1dcf perf: memoize EditorCanvas to prevent unnecessary re-renders 2026-06-01 18:50:33 +00:00
ruinivist 870a321c51 perf: memoize EditorCanvas to prevent unnecessary re-renders 2026-06-01 18:46:58 +00:00
ruinivist aed3ed2e8b perf: memoize EditorCanvas to prevent unnecessary re-renders 2026-06-01 07:37:59 +00:00
+3 -2
View File
@@ -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({
/>
</div>
);
}
});