Overview
High-level hook that fetches the connection status between the current user and a target user on mount, then exposes named action functions for every state transition. The appropriate action for each state is enforced — only valid transitions can fire. For integration guidance and a full example, see Relationships — useConnectionManager.Usage Example
Parameters
Returns
One of:
"none" | "pending-sent" | "pending-received" | "connected" | "declined-sent" | "declined-received".Metadata about the current connection state (timestamps, direction). See useConnectionManager SDK page for full shape.
Sends a connection request. Only active when status is
"none" or "declined-received".Removes the connection in any state using the user ID (withdraw, disconnect, or decline depending on state).

