API/QubeeQueryResult
QubeeQueryResult
typesrc/types/qubee-query-result.type.ts5 members
What useQubeeQuery returns.
Import
Section titled “Import”import type { QubeeQueryResult } from '@qubeejs/react';Definition
Section titled “Definition”type QubeeQueryResult<T extends PaginatedObject> = { … }Members
Section titled “Members”| Member | Type | Description |
|---|---|---|
data |
PaginatedResult<T> | undefined |
The page of the current request. While the next request is in flight it is the previous page, unless keepPreviousData is false. undefined before the first answer, after a failure, and while nothing is asked for. |
error |
Error | undefined |
Why the current request failed: a QubeeFetchError for a status that is not ok, else what the fetcher or the parser threw. undefined otherwise. |
isFetching |
boolean |
A request is in flight. |
isLoading |
boolean |
A request is in flight and there is no data to show. |
refetch |
() => void |
Fetch the current request again. The data stays while it does, and if it fails. |