Overview
useFetchMutualSpaces returns a callable function that fetches the spaces both the authenticated user and another user are active members of — their spaces in common. The response is a paginated list of Space objects.
Usage Example
Parameters
The other user’s ID. Mutual spaces are computed between this user and the authenticated user.
Page number. Defaults to
1.Number of results per page. Max
100.Optional includes. Pass
"files" to populate avatar and banner file objects on each space.Returns
The spaces both users share (Space). Computed fields such as
membersCount and isMember reflect the authenticated user.Standard pagination metadata.

