Overview
useFetchSpaceByShortId returns a callable function that fetches a space using its shortId. The shortId is a compact, URL-safe identifier generated automatically when a space is created.
Usage Example
Parameters
Optional. A single value or an array; the only value is
"files". Pass it to include avatar and banner file objects.Returns
Returns a SpaceDetailed object, which includesmemberPermissions, parentSpace, and childSpaces in addition to all base space fields. memberPermissions is always present and reports what the current user may do in the space, also when they have no membership (isMember: false, status: null); a signed-out user gets the anonymous view. See How permissions are calculated.
For most use cases, prefer SpaceProvider shortId prop over calling this hook directly.
