Appearance
Comment system composable for collaborative review.
const { comments, isLoading, fetchComments, addComment, updateComment, deleteComment, } = useComments(projectId)
projectId
Ref<string>
fetchComments
targetId?: string
Promise<void>
addComment
body: string, targetId: string, targetType: string
updateComment
commentId: string, body: string
deleteComment
commentId: string
app/composables/useComments.ts
useComments
Comment system composable for collaborative review.
Import
2
3
4
5
6
7
8
Parameters
projectIdRef<string>Methods
fetchCommentstargetId?: stringPromise<void>addCommentbody: string, targetId: string, targetType: stringPromise<void>updateCommentcommentId: string, body: stringPromise<void>deleteCommentcommentId: stringPromise<void>Source
app/composables/useComments.ts