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 | { cacheStrategy : CacheStrategies ; feedObject : SCFeedObjectType ; feedObjectType : DISCUSSION | POST | STATUS ; id : number ; offset : number ; onChangePage : (page ) => any ; orderBy : SCCommentsOrderBy ; pageSize : number ; parent : number ; } | |
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