Skip to content

Commit 74c5278

Browse files
committed
fix(canvas): add sandbox and embedded to nodes useMemo deps
1 parent 44c332d commit 74c5278

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,16 @@ const WorkflowContent = React.memo(
24702470
})
24712471

24722472
return nodeArray
2473-
}, [blocksStructureHash, blocks, activeBlockIds, pendingBlocks, isDebugging, getBlockConfig])
2473+
}, [
2474+
blocksStructureHash,
2475+
blocks,
2476+
activeBlockIds,
2477+
pendingBlocks,
2478+
isDebugging,
2479+
getBlockConfig,
2480+
sandbox,
2481+
embedded,
2482+
])
24742483

24752484
// Local state for nodes - allows smooth drag without store updates on every frame
24762485
const [displayNodes, setDisplayNodes] = useState<Node[]>([])

0 commit comments

Comments
 (0)