Overview
useFetchManyCommentsWrapper is a stateful wrapper around useFetchManyComments that manages pagination, sort state, and the comment list for you. Use it when you need a custom paginated comment list outside of CommentSectionProvider — for example, a user profile page showing all comments a user has made, or a custom thread viewer.
Changing sortBy resets the list and re-fetches from page 1. At least one of entityId, userId, or parentId must be provided — the hook will not fetch otherwise.
Usage Example
Parameters
Filter to comments on a specific entity.
Filter to comments by a specific user.
Filter to replies of a specific parent comment.
Filter to comments within a specific source.
Number of comments per page. Default:
10.Initial sort order. Default:
"new".Populate related data. Accepted values:
"user", "entity", "space", "parent".Returns
The current list of fetched comments. Appended to on each
loadMore call.true while fetching the initial page or loading more.true if additional pages are available.Current sort order.
Change the sort order. Resets the comment list and re-fetches from page 1.
Load the next page of comments. Appends to the existing list.

