useItemComments

useItemComments(
  itemId: number,
  list: string,
  options?: ItemCommentsOptions,
  deps?: any[]): ICommentInfo[] | null | undefined;

Returns comments for specific list item.

Examples

Get list items comments,

const comments = useItemComments(12, "My List Title");
const comments = useItemComments(12, "5ee53613-bc0f-4b2a-9904-b21afd8431a7");

Parameters

NameTypeDescriptionTracked for changes
itemIdnumberItem IdYes
liststringList UUID or titleYes
options?ItemCommentsOptionsuseItemComments hook optionsPartially
deps?DependencyListHook dependency list.Yes