Skip to main content

Overview

useReorderRules returns a callable function for reordering a space’s rules by providing a new ordered array of rule IDs. Only space admins can reorder rules.

Usage Example

Parameters

string
required
UUID of the space.
string[]
required
Ordered array of all rule UUIDs in the desired display order.

Returns

Returns a Rule[] array: the full list of rules in their new order. useFetchManyRules returns them in this order.