āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/clerk/clerk-docs/_partials/hooks/paginated-resources ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
An array that contains the fetched data. For example, for the memberships attribute, data will be an array of OrganizationMembership objects.
countnumberThe total count of data that exist remotely.
isLoadingbooleanA boolean that is true if there is an ongoing request and there is no fetched data.
isFetchingbooleanA boolean that is true if there is an ongoing request or a revalidation.
isErrorbooleanA boolean that indicates the request failed.
pagenumberThe current page.
pageCountnumberThe total amount of pages. It is calculated based on count, initialPage, and pageSize.
fetchPage(page: number) => voidA function that triggers a specific page to be loaded.
fetchPrevious() => voidA function that triggers the previous page to be loaded. This is the same as fetchPage(page => Math.max(0, page - 1)).
fetchNext() => voidA function that triggers the next page to be loaded. This is the same as fetchPage(page => Math.min(pageCount, page + 1)).
hasNextPagebooleanA boolean that indicates if there are available pages to be fetched.
hasPreviousPagebooleanA boolean that indicates if there are available pages to be fetched.
revalidate() => voidA function that triggers a revalidation of the current page.
setData(data: any[]) => voidA function that allows you to set the data manually. </Properties>
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā