Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

CreateQueryOptions.md

40 lines962 Bytes

Defined in: types.ts:58

The options accepted by injectQuery. Same as CreateBaseQueryOptions, minus suspense β€” which angular-query-experimental doesn't support, unlike react-query.

Extends

Type Parameters

TQueryFnData

TQueryFnData = unknown

The type your queryFn resolves to.

TError

TError = DefaultError

The type of errors your queryFn may throw.

TData

TData = TQueryFnData

The type data ends up as after select runs. Defaults to TQueryFnData when no select is used.

TQueryKey

TQueryKey extends QueryKey = QueryKey

The type of your queryKey.