Always use latest version of onConnectEnd & isValidConnection in Handle/ReconnectAnchors

This commit is contained in:
peterkogo
2026-02-10 16:02:43 +01:00
parent 7813d07345
commit 45a4a977c5
4 changed files with 10 additions and 19 deletions
@@ -79,9 +79,9 @@
flowId,
cancelConnection,
panBy,
isValidConnection,
isValidConnection: (...args) => store.isValidConnection?.(...args) ?? true,
onConnectStart: _onConnectStart,
onConnectEnd: onconnectend,
onConnectEnd: (...args) => store.onconnectend?.(...args),
onConnect: (connection) => {
const reconnectedEdge = { ...edge, ...connection };
const newEdge = onbeforereconnect