Defined in: preact-query/src/types.ts:194
The options accepted by useSuspenseQuery. Same as UseQueryOptions, minus enabled, throwOnError, and placeholderData — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options don't apply.
OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryFn" | "enabled" | "throwOnError" | "placeholderData">
TQueryFnData = unknown
The type your queryFn resolves to.
TError = DefaultError
The type of errors your queryFn may throw.
TData = TQueryFnData
The type data ends up as after select runs. Defaults to TQueryFnData when no select is used.
TQueryKey extends QueryKey = QueryKey
The type of your queryKey.
optional queryFn: QueryFunction<TQueryFnData, TQueryKey, never>;Defined in: preact-query/src/types.ts:207
skipToken is not allowed here — Suspense hooks cannot render a "disabled" state, so a query function must always be provided, unless a default query function has been defined.
optional subscribed: boolean;Defined in: preact-query/src/types.ts:63
Set this to false to unsubscribe this observer from updates to the query cache. Defaults to true.
OmitKeyof.subscribed