diff --git a/src/FlowEditor/container/FlowEditor.tsx b/src/FlowEditor/container/FlowEditor.tsx index adf3816..ed8ea98 100644 --- a/src/FlowEditor/container/FlowEditor.tsx +++ b/src/FlowEditor/container/FlowEditor.tsx @@ -244,14 +244,6 @@ const FlowEditor = forwardRef( const edge = updateEdgesOnConnection(connection); if (afterConnect && edge) { - // 触发 edges change 事件 - handleEdgesChange([ - { - item: edge, - type: 'add', - }, - ]); - afterConnect(edge); } },