hooks/useSCFetchContributors
Interfaces
SCPaginatedContributorsType
Interface SCCommentsObjectType
Properties
| Property | Type |
|---|---|
componentLoaded | boolean |
contributors | SCUserType[] |
isLoadingNext | boolean |
isLoadingPrevious | boolean |
next | string |
page | number |
previous | string |
reload | boolean |
total | number |
Functions
useSCFetchContributors()
useSCFetchContributors(
props):any
info
This custom hooks is used to fetch paginated contributors.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | { cacheStrategy: CacheStrategies; feedObject: SCFeedObjectType; feedObjectType: DISCUSSION | POST | STATUS; id: number; offset: number; onChangePage: (page) => any; pageSize: number; } | |
props.cacheStrategy? | CacheStrategies | - |
props.feedObject? | SCFeedObjectType | - |
props.feedObjectType | DISCUSSION | POST | STATUS | - |
props.id? | number | - |
props.offset? | number | - |
props.onChangePage? | (page) => any | - |
props.pageSize? | number | - |
Returns
any