refactor(actions): combine batch update and update node dimension actions

This commit is contained in:
moklick
2021-02-11 19:14:30 +01:00
parent 9b70e1e0fa
commit 1d1a17c80a
6 changed files with 6 additions and 41 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
useEffect(() => {
if (nodeElement.current && !isHidden) {
updateNodeDimensions({ id, nodeElement: nodeElement.current });
updateNodeDimensions([{ id, nodeElement: nodeElement.current }]);
}
}, [id, isHidden, sourcePosition, targetPosition]);