Joining and Leaving
The simplest membership operations are exposed directly fromuseSpace:
requireJoinApproval: true, joinSpace() creates a pending membership that must be approved by a moderator or admin before the user becomes active.
Fetching Members
Use standalone hooks to fetch member lists:Checking Membership Status
Check the current user’s membership without loading the full space:Approving and Declining Requests
Moderators and admins can process pending membership requests:Both
useApproveMember and useDeclineMember require the caller to be a moderator or admin of the space.
