hooks/useSCFetchCommentObjects
Interfaces
SCCommentsObjectType
Interface SCCommentsObjectType
Properties
Property | Type |
---|---|
comments | SCCommentType [] |
componentLoaded | boolean |
isLoadingNext | boolean |
isLoadingPrevious | boolean |
next | string |
page | number |
previous | string |
reload | boolean |
total | number |
Functions
useSCFetchCommentObjects()
useSCFetchCommentObjects(
props
):any
info
This custom hooks is used to fetch paginated comments.
Parameters
Parameter | Type | Description |
---|---|---|
props | object | |
props.cacheStrategy ? | CacheStrategies | - |
props.feedObject ? | SCFeedObjectType | - |
props.feedObjectType | DISCUSSION | 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