QueryState
Import
import { QueryState } from "@hyper-fetch/db"
Source
Package
Preview
type QueryState<Data> = {
data: Data | undefined;
error: unknown;
hasNextPage: boolean;
isFetching: boolean;
stale: boolean;
status: QueryStatus;
}
Structure
QueryState
| Name | Type | Description |
|---|---|---|
| data | |
|
| error | | The last failure, also when a refresh failed and the rows stay |
| hasNextPage | | Whether a paginated query has another page |
| isFetching | | Whether a request for the query is in flight |
| stale | | Whether the rows may be out of date: their subset is stale or its syncs are disconnected |
| status | |
|
