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
The ID of the user whose connection relationship to manage.
Returns
One of:
"none" | "pending-sent" | "pending-received" | "connected" | "declined-sent" | "declined-received".The active connection record ID, or
null if there is no connection.Metadata about the current connection state (timestamps, direction). See useConnectionManager SDK page for full shape.
true while the initial status is being fetched.Sends a connection request. Only active when status is
"none" or "declined-received".Accepts an incoming request. Only active when status is
"pending-received".Declines an incoming request. Only active when status is
"pending-received".Withdraws a sent request. Only active when status is
"pending-sent".Removes an established connection. Only active when status is
"connected".Removes the connection in any state using the user ID (withdraw, disconnect, or decline depending on state).
Re-fetches connection status from the server.

