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
Initial sort order. Default:
"createdAt". "new"/"old" are deprecated aliases for "createdAt" (removed in v8).Populate related data. Accepted values:
"user", "entity", "space", "parent", "grants". On a comment feed, "parent" is accepted but not resolved — parentComment is populated only by the two single-comment reads.Returns
Change the sort order. Resets the comment list and re-fetches from page 1.
Change the sort direction. Resets the comment list and re-fetches from page 1.

