API/QubeeQueryOptions
QubeeQueryOptions
typesrc/types/qubee-query-options.type.ts4 members
Options of useQubeeQuery.
Import
Section titled “Import”import type { QubeeQueryOptions } from '@qubeejs/react';Definition
Section titled “Definition”type QubeeQueryOptions<T extends PaginatedObject> = { … }Members
Section titled “Members”| Member | Type | Description |
|---|---|---|
enabled? |
boolean |
false fetches nothing, as a null request does. Default true. |
fetcher? |
QubeeFetcher |
What performs the request, in place of the nearest QubeeFetchProvider’s fetcher. A new function does not fetch again. |
initialData? |
PaginatedResult<T> |
The page of the request present on the first render — fetched on the server, say. That request is not fetched; every later one is. |
keepPreviousData? |
boolean |
Keep showing the previous page while the next one loads. Default true. |