refactor(updates): only trigger dim updates when dim changed
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
nodesDraggable,
|
||||
nodesConnectable,
|
||||
elementsSelectable,
|
||||
updateNodeDimensions
|
||||
updateNodeInternals
|
||||
} = useStore();
|
||||
|
||||
const resizeObserver: ResizeObserver | null =
|
||||
@@ -29,7 +29,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
updateNodeDimensions(updates);
|
||||
updateNodeInternals(updates);
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
|
||||
Reference in New Issue
Block a user