useReplies
function useReplies(activityId, commentId): object;Replies under one comment. Same shape as useComments. add calls
activity(activityId).comments.add({ text, parentId: commentId }).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
activityId |
string |
commentId |
string |
Returns
Section titled “Returns”object
add: (text) => Promise<void> = thread.add;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”Promise<void>
enabled
Section titled “enabled”enabled: boolean = thread.enabled;error: Error | null = thread.error;hasNext
Section titled “hasNext”hasNext: boolean = thread.hasNext;isLoading
Section titled “isLoading”isLoading: boolean = thread.isLoading;loadNext
Section titled “loadNext”loadNext: () => Promise<void> = thread.loadNext;Returns
Section titled “Returns”Promise<void>
replies
Section titled “replies”replies: Comment[] = thread.rows;Throws
Section titled “Throws”The network error after the optimistic row has been removed.