Skip to main content

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

page
number
Page number. Defaults to 1.
limit
number
Number of results per page.

Returns

data
UserSpaceItem[]
Each item contains a space (Space) and a membership object with membershipId, role, status, and joinedAt.
pagination
object
Standard pagination metadata.