Overview
useFetchSpace returns a callable function that fetches a single space by its UUID. The response includes full space details, hierarchy info, and the current user’s membership permissions.
Usage Example
Parameters
The hook returns a function. That function accepts:UUID of the space to fetch.
Optional. Pass
"files" to include avatar and banner file objects in the response.Returns
Returns a SpaceDetailed object, which includesmemberPermissions, parentSpace, and childSpaces in addition to all base space fields.
For most use cases, prefer SpaceProvider over calling this hook directly.
