UseQueryWithPaginationReturnType

The return type of the useQueryWithPagination hook comprises of the data, error logs, loading indicator, and pagination object.

Example

{
  "data": {},
  "error": {},
  "loading": false,
  "pagination": {
    "hasNextPage": true,
    "hasPrevPage": true,
    "getNextPage": () => {},
    "getPrevPage": () => {}
  }
}

Type Signature

type UseQueryWithPaginationReturnType = {
  data: any;
  error: any;
  loading: boolean;
  pagination: Pagination;
};

Fields

Last updated

Was this helpful?