Skip to Content
ReferenceTypes

OnReconnect

Source on GitHub 

The OnReconnect type represents a callback function that is called when an existing edge is reconnected to a different node or handle. It receives the old edge and the new connection details.

type OnReconnect<EdgeType extends EdgeBase = EdgeBase> = ( oldEdge: EdgeType, newConnection: Connection, ) => void;
Parameters:
NameTypeDefault
oldEdgeEdgeType
newConnectionConnection
Returns:
void
Last updated on