Merge branch 'handle-lookup' of github.com:xyflow/xyflow into handle-lookup

This commit is contained in:
moklick
2024-08-14 16:31:06 +02:00
7 changed files with 36 additions and 6 deletions
+6 -1
View File
@@ -192,7 +192,12 @@ function onPointerDown(
// it's important to get a fresh reference from the store here
// in order to get the latest state of onConnectEnd
onConnectEnd?.(event);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { inProgress, ...connectionState } = previousConnection;
onConnectEnd?.(event, {
...connectionState,
toPosition: previousConnection.toHandle ? previousConnection.toPosition : null,
});
if (edgeUpdaterType) {
onReconnectEnd?.(event);