UseQueryWithPaginationReturnType
The return type of the useQueryWithPagination hook comprises of the data, error logs, loading indicator, and pagination object.
Example
Type Signature
Fields
Param | Type | Default Value | Description |
---|---|---|---|
|
|
| Response data from GraphQL |
|
|
| Error logs from GraphQL query if API call failed. |
|
|
| Returns |
| - | A pagination object that returns the pagination state and function to change pages |
Last updated
Was this helpful?