Overview
useFetchCommentReactions returns a function that fetches individual reaction records for a comment. Use this to show “who reacted” lists, optionally filtered by a specific reaction type.
Usage Example
Parameters
The comment to fetch reactions for.
Page number (1-indexed).
Results per page. Default:
20.Filter to a specific reaction type.
Sort direction by creation date. Default:
"desc".Returns
Array of reaction records. Each includes
id, userId, reactionType, targetId, targetType, createdAt. The user field is populated when user data is available.Pagination metadata for the result set.
page— current page numberpageSize— number of results returnedtotalItems— total number of reactions matching the querytotalPages— total number of pageshasMore— whether additional pages are available

