Convenience wrapper for offset-based paginated APIs. Auto-iterates using isLastPage and nextPageStart from the response.
isLastPage
nextPageStart
const result = await pagedFetch({ fetcher: (params) => api.items(params), limit: 100,}); Copy
const result = await pagedFetch({ fetcher: (params) => api.items(params), limit: 100,});
Convenience wrapper for offset-based paginated APIs. Auto-iterates using
isLastPageandnextPageStartfrom the response.