Skip to main content
Version: 2.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 command.


Example

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

// or

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