* docs(vue-query,solid-query): inline react reference content instead of 'ref'-ing hand-written react docs * docs(react-query): generate reference docs with TypeDoc * docs(vue-query,solid-query): fix dangling suspense-hook links left over from the react content copy * docs(solid-query): apply solid's callback call form to inlined reference examples * docs(react-query): correct inaccurate JSDoc statements flagged in review * docs(vue-query,solid-query): fix reactivity-aware examples and inaccurate type signatures flagged in review * docs(vue-query,solid-query): fix remaining type/behavior inaccuracies flagged in second review * docs(react-query): stop implying a default queryFn defers a fetch the way 'enabled: false' does * docs(vue-query): mark 'mutate'/'mutateAsync' per-call options as optional
1.5 KiB
| id | title |
|---|---|
| UseInfiniteQueryOptions | UseInfiniteQueryOptions |
Defined in: react-query/src/types.ts:238
The options accepted by useInfiniteQuery. Extends InfiniteQueryObserverOptions from
@tanstack/query-core with the react-query-specific subscribed option, minus suspense (which
react-query derives from which hook you call rather than exposing as an option).
Extends
OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>,"suspense">
Type Parameters
TQueryFnData
TQueryFnData = unknown
The type of a single page, as your queryFn resolves it.
TError
TError = DefaultError
The type of errors your queryFn may throw.
TData
TData = InfiniteData<TQueryFnData>
The type data ends up as after select runs — defaults to InfiniteData<TQueryFnData>,
the shape of all fetched pages plus their page params.
TQueryKey
TQueryKey extends QueryKey = QueryKey
The type of your queryKey.
TPageParam
TPageParam = unknown
The type of the parameter passed to queryFn to fetch a given page.
Properties
subscribed?
optional subscribed: boolean;
Defined in: react-query/src/types.ts:259
Set this to false to unsubscribe this observer from updates to the query cache.
Default Value
true