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

OnConnect

Source on GitHub 

The OnConnect type is a callback function that is called when a new connection is created between nodes. It receives a connection object containing the source and target node IDs and their respective handle IDs.

type OnConnect = (connection: Connection) => void;
Parameters:
NameTypeDefault
connectionConnection
Returns:
void
Last updated on