Skip to main content
Version: 5.x.x

Pagination

We can create pagination in a banal way, thanks to our auto-generating key cache. In this way, all that is required of us is the appropriate change of data in the request.


Example

const { data, error, loading } = useFetch(getPaginatedList.setQueryParams({ page: 1 }));

// or

const { data, error, loading } = useFetch(getPaginatedList.setQueryParams({ offset: 0, limit: 10 }));