Skip to content

@vue-flow/monorepo • Docs


Function: useConnection() ​

useConnection(): object

Composable for accessing the currently ongoing connection.

Returns ​

object

current connection: startHandle, endHandle, status, position

endHandle ​

endHandle: Ref<null | ConnectingHandle>

position ​

position: Ref<XYPosition>

startHandle ​

startHandle: Ref<null | ConnectingHandle>

status ​

status: Ref<null | ConnectionStatus>

Released under the MIT License.