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
  • oldEdge: EdgeType
  • newConnection: Connection
Returns

void