Module: hooks/useSCFetchFeed
Interfaces
Functions
useSCFetchFeed
▸ useSCFetchFeed(props
): any
info
This custom hooks is used to fetch paginated Data.
Parameters
Name | Type |
---|---|
props | Object |
props.cacheStrategy? | CacheStrategies |
props.endpoint | EndpointType |
props.endpointQueryParams? | Record <string , string | number > |
props.id | string |
props.prefetchedData? | SCPaginatedResponse <SCFeedUnitType > |
props.onNextPage? | (page : any , offset : any , total : any , data : any ) => any |
props.onPreviousPage? | (page : any , offset : any , total : any , data : any ) => any |
Returns
any