You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Hook to check if a <Handle /> is connected to another <Handle /> and get the connections.
19
+
* Composable that returns existing connections of a handle
20
20
*
21
21
* @public
22
-
* @param param.type - handle type 'source' or 'target'
23
-
* @param param.nodeId - node id - if not provided, the node id from the NodeIdContext is used
24
-
* @param param.id - the handle id (this is only needed if the node has multiple handles of the same type)
25
-
* @param param.onConnect - gets called when a connection is established
26
-
* @param param.onDisconnect - gets called when a connection is removed
27
-
* @returns an array with connections
22
+
* @param UseHandleConnectionsParams
23
+
* @param UseHandleConnectionsParams.type - handle type `source` or `target`
24
+
* @param UseHandleConnectionsParams.nodeId - node id - if not provided, the node id from the `useNodeId` (meaning, the context-based injection) is used
25
+
* @param UseHandleConnectionsParams.id - the handle id (this is required if the node has multiple handles of the same type)
26
+
* @param UseHandleConnectionsParams.onConnect - gets called when a connection is created
27
+
* @param UseHandleConnectionsParams.onDisconnect - gets called when a connection is removed
0 commit comments