Toggle

API Reference

useFetcher

Parameters:

ParameterTypeRequiredDescription
endpointStringYesThe API endpoint to fetch data from.
firstFilterStringNoAn optional filter to include in the API query.
secondFilterStringNoAnother optional filter to include in the API query.
thirdFilterStringNoAn optional third filter to include in the API query.
limitNumberNoNumber of items to fetch per request (default: 5).

Returns:

Return ValueTypeDescription
datasArrayThe fetched data.
loadingBooleanIndicates if the data is currently being loaded.
hasMoreBooleanIndicates if there is more data to fetch.
nextFunctionFunction to fetch the next set of data.

InfiniteScroll

PropTypeRequired
hasMoreBooleanYes
isLoadingBooleanYes
nextFunctionYes
thresholdNumberYes