Skip to content
API/QubeeQueryOptions

QubeeQueryOptions

type
src/types/qubee-query-options.type.ts4 members

Options of useQubeeQuery.

import type { QubeeQueryOptions } from '@qubeejs/react';
type QubeeQueryOptions<T extends PaginatedObject> = { … }
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.

QubeeFetcher