refactor(useUpdateNodeInternals): only call updateNodeDimensions once
This commit is contained in:
@@ -23,7 +23,7 @@ const CustomNode: FC<NodeProps> = ({ id }) => {
|
||||
<button
|
||||
onClick={() => {
|
||||
setHandleCount((c) => c + 1);
|
||||
updateNodeInternals(id);
|
||||
updateNodeInternals([id]);
|
||||
}}
|
||||
>
|
||||
add handle
|
||||
|
||||
Reference in New Issue
Block a user