Overview
useFetchUserSpaces returns a callable function that fetches all spaces where the authenticated user has an active membership. The response includes membership metadata alongside each space.
Usage Example
Parameters
Membership status to list:
"active" (default), "pending", or "banned". Use "pending" to show join requests still awaiting approval.Returns
Each item contains a
space (Space) and a membership object with membershipId, role, status, and joinedAt.
