Interface UseCommentsReturn

Interface representing the return type of the useCommentsByOwner and useCommentsBySubmission hooks.

Hierarchy

  • UseCommentsReturn

Properties

comments: CommentExtendedType[]

The list of comments fetched for the current scope. These comments are extended with additional utility methods like changeVisibility, delete, and edit.

currentPage?: number

The current page of comments (optional), relevant for pagination purposes.

Function to fetch additional comments (with optional refresh).

fetched: boolean

Boolean indicating whether the comments have been successfully fetched or not.

hasMore: boolean

Boolenan indicating whether there are more comments available to fetch.

Function to refresh the current list of comments.

Generated using TypeDoc