refactor(useUpdateNodeInternals): only call updateNodeDimensions once

This commit is contained in:
moklick
2023-05-17 11:00:18 +02:00
parent 8797e4da12
commit 1a3f22557c
2 changed files with 11 additions and 10 deletions
@@ -23,7 +23,7 @@ const CustomNode: FC<NodeProps> = ({ id }) => {
<button
onClick={() => {
setHandleCount((c) => c + 1);
updateNodeInternals(id);
updateNodeInternals([id]);
}}
>
add handle