perf: memoize EditorCanvas to prevent unnecessary re-renders

This commit is contained in:
ruinivist
2026-06-01 18:50:33 +00:00
parent 870a321c51
commit 1dc75b1dcf
-2
View File
@@ -34,8 +34,6 @@ function sceneFromEditor(
}; };
} }
// ⚡ Bolt: Wrapped in React.memo to prevent expensive Excalidraw re-renders
// when parent state (like the sidebar open state or drawing title input) changes.
export const EditorCanvas = memo(function EditorCanvas({ export const EditorCanvas = memo(function EditorCanvas({
activeId, activeId,
scene, scene,