usePageComments

usePageComments(
  pageRelativePath: string,
  options?: PageCommentsOptions,
  deps?: any[]): ICommentInfo[] | undefined | null;

Returns comment collection from page.

Examples

Get page comments,

const pageComments = usePageComments("/sites/mysite/Pages/Home.aspx");

Parameters

NameTypeDescriptionTracked for changes
pageRelativePathstringPage server relative pathYes
options?PageCommentsOptionsuseApps hook optionsPartially
deps?DependencyListHook dependency list.Yes