refactor(updates): only trigger dim updates when dim changed

This commit is contained in:
moklick
2024-04-11 12:31:14 +02:00
parent 63aa0dd713
commit 4fa3a87241
14 changed files with 57 additions and 53 deletions
@@ -10,7 +10,7 @@
nodesDraggable,
nodesConnectable,
elementsSelectable,
updateNodeDimensions
updateNodeInternals
} = useStore();
const resizeObserver: ResizeObserver | null =
@@ -29,7 +29,7 @@
});
});
updateNodeDimensions(updates);
updateNodeInternals(updates);
});
onDestroy(() => {