Skip to main content

Overview

useFetchSpaceChildren returns a callable function that fetches the immediate child spaces of a given space. Results are paginated.
Authentication is optional. When the caller is signed in, each child carries an isMember flag. Only children with visibility: "public" are listed for every caller — signing in does not surface unlisted or private children.

Usage Example

Parameters

string
required
UUID of the parent space.
number
Page number. Defaults to 1.
number
Number of results per page.

Returns

Space[]
Array of Space objects representing the child spaces.
object
Standard pagination metadata.
The useSpace hook also includes a childSpaces field with up to 10 previews of children, useful for navigation breadcrumbs without a separate fetch.