InfiniteQueryState
The state of an infinite query: the rows of its window, split into pages
Import
import { InfiniteQueryState } from "@hyper-fetch/db"
Source
Package
Preview
type InfiniteQueryState<Item> = QueryState<Item[]> & { isFetchingNextPage: boolean; pages: Item[][] };
Structure
InfiniteQueryState
| 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 | |
|
| isFetchingNextPage | | Whether more rows are loading to fill the window after
|
| pages | |
|
