We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2163953 + 67291a5 commit a0868b2Copy full SHA for a0868b2
frontend/src/components/canvas/index.tsx
@@ -74,7 +74,14 @@ function Flow({ className }: CanvasProps) {
74
const initialNodes = Array.from(nodesMap.values()) as Node[];
75
setNodes(initialNodes);
76
77
+ let isInitialSync = true;
78
+
79
nodesMap.observe((event) => {
80
+ if (isInitialSync) {
81
+ isInitialSync = false;
82
+ return;
83
+ }
84
85
event.changes.keys.forEach((change, key) => {
86
const nodeId = key;
87
if (change.action === "add" || change.action === "update") {
0 commit comments