fix(performance): Only render visible (#672)

This commit is contained in:
Guy Ben-Aharon
2025-04-23 12:11:27 +03:00
committed by GitHub
parent 3a1b8d1db1
commit 83c43332d4

View File

@@ -826,6 +826,7 @@ export const Canvas: React.FC<CanvasProps> = ({ initialTables }) => {
<CanvasContextMenu>
<div className="relative flex h-full" id="canvas">
<ReactFlow
onlyRenderVisibleElements
colorMode={effectiveTheme}
className="canvas-cursor-default nodes-animated"
nodes={nodes}