Overview
Returns a function that checks whether the current authenticated user blocks a givenuserId. The result reports the current user’s outbound state only — whether I block this user. It never reveals whether the other user has blocked the current user (the inbound direction is deliberately hidden for non-disclosure).
Usage Example
Parameters
The hook returns a function. That function accepts:string
required
The ID of the user to check. Cannot be the current user’s own ID.
Returns
boolean
Whether the current user blocks the target user.
string | undefined
The ID of the block record. Present when
blocked is true.string | undefined
ISO timestamp of when the block was created. Present when
blocked is true.Related
- useBlockManager — loads this status automatically on mount

