Overview
useFetchEntityReactionsWrapper is a stateful wrapper around useFetchEntityReactions that manages pagination and reaction list state for you. Use it to build “who reacted” UIs — for example, a modal showing all users who upvoted an entity, with infinite scroll.
By default the hook does not fetch on mount. Set autoFetch: true to start fetching immediately, or call refetch() manually when you’re ready (e.g., when a modal opens).
Usage Example
Parameters
Number of reactions per page: a whole number from
1 to 100. Defaults to 20. A larger value is rejected with 400 entity/invalid-query, never lowered to 100.Returns
The last load failure, or
null. Cleared when the next load starts; loadMore() retries it. A SublayError.Load the next page of reactions and append it, or retry the load that failed. With
autoFetch off, the first call loads page 1. Does nothing while a load is running or when there is nothing more. Never rejects: a failure lands in error.
