[ Web Proxy ]
URL:
Viewing: https://reactflow.dev/api-reference/types/on-connect-end [Back]  [Original]

OnConnectEnd - React FlowSkip to Content

React Flow

LearnReferenceExamplesUIShowcaseMoreReact Flow ProRemove Attribution
SearchGitHubDiscord
ReferenceTypes

OnConnectEnd

Source on GitHub

The OnConnectEnd type represents a callback function that is called when finishing or canceling a connection attempt. It receives the mouse or touch event and the final state of the connection attempt.

type OnConnectEnd = ( event: MouseEvent | TouchEvent, connectionState: FinalConnectionState, ) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
connectionStateFinalConnectionState<InternalNodeBase<NodeType>>
Returns:
void
Last updated on August 31, 2026

A project by the xyflow team

We are building and maintaining open source software for node-based UIs since 2019.

Web Proxy Viewer  |  New URL  |  Original Page