Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesOnBeforeReconnect

OnBeforeReconnect

Source on GitHub 

The OnBeforeReconnect type is a callback function that is called before an edge is reconnected. It can prevent reconnection or modify the connection by returning false or a modified connection.

type OnBeforeReconnect<EdgeType extends EdgeBase = EdgeBase> = ( oldEdge: EdgeType, newConnection: Connection, ) => Promise<boolean | Connection>;
Parameters:
NameTypeDefault
newEdgeEdgeType
oldEdgeEdgeType
Returns:
void | EdgeType
Last updated on