UseQueryWithPaginationReturnType
The return type of the useQueryWithPagination hook comprises of the data, error logs, loading indicator, and pagination object.
Last updated
Was this helpful?
The return type of the useQueryWithPagination hook comprises of the data, error logs, loading indicator, and pagination object.
Last updated
Was this helpful?
Param | Type | Default Value | Description |
---|---|---|---|
data
any
null
Response data from GraphQL query
if API call succeeds.
error
any
null
Error logs from GraphQL query if API call failed.
loading
boolean
false
Returns true
to indicate if the API call is in a loading state, otherwise false
.
pagination
-
A pagination object that returns the pagination state and function to change pages