Skip to main content

hooks/useSCFetchCommentObjects

Interfaces

SCCommentsObjectType

Interface SCCommentsObjectType

Properties

PropertyType
commentsSCCommentType[]
componentLoadedboolean
isLoadingNextboolean
isLoadingPreviousboolean
nextstring
pagenumber
previousstring
reloadboolean
totalnumber

Functions

useSCFetchCommentObjects()

useSCFetchCommentObjects(props): any

info

This custom hooks is used to fetch paginated comments.

Parameters

ParameterTypeDescription
propsobject
props.cacheStrategy?CacheStrategies-
props.feedObject?SCFeedObjectType-
props.feedObjectTypeDISCUSSION | POST | STATUS-
props.id?number-
props.offset?number-
props.onChangePage?(page) => any-
props.orderBy?SCCommentsOrderBy-
props.pageSize?number-
props.parent?number-

Returns

any

Source

packages/react-core/src/hooks/useSCFetchCommentObjects.ts:166