Overview
useFetchCommentReactionsWrapper is a stateful wrapper around useFetchCommentReactions that manages pagination and reaction list state for you. Use it to build “who reacted” UIs for comments — for example, a popover showing users who liked a specific comment.
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 popover 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 comment/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.
