Skip to main content

Overview

useFetchRule returns a callable function that fetches a single community rule by ID. No sign-in is required. A rule of a space the user can’t see (a private space they aren’t an active member of, or a space under one) is answered 404 space/not-found.

Usage Example

Parameters

string
required
UUID of the space.
string
required
UUID of the rule to fetch.

Returns

A single Rule object with id, projectId, spaceId, title, description, order, lastApprovedBy, createdAt, and updatedAt.