Allows to share and re-use infinite query options in a type-safe way.
The queryKey will be tagged with the type from queryFn.
The infinite query options to tag with the type from queryFn.
function infiniteQueryOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam,
>(
options,
): UndefinedInitialDataInfiniteOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
> &
object
function infiniteQueryOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam,
>(
options,
): UndefinedInitialDataInfiniteOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
> &
object
Allows to share and re-use infinite query options in a type-safe way.
The queryKey will be tagged with the type from queryFn.
• TQueryFnData
• TError = Error
• TData = InfiniteData<TQueryFnData, unknown>
• TQueryKey extends QueryKey = QueryKey
• TPageParam = unknown
• options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>
The infinite query options to tag with the type from queryFn.
UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object
The tagged infinite query options.
The tagged infinite query options.
The infinite query options to tag with the type from queryFn.
function infiniteQueryOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam,
>(
options,
): DefinedInitialDataInfiniteOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
> &
object
function infiniteQueryOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam,
>(
options,
): DefinedInitialDataInfiniteOptions<
TQueryFnData,
TError,
TData,
TQueryKey,
TPageParam
> &
object
Allows to share and re-use infinite query options in a type-safe way.
The queryKey will be tagged with the type from queryFn.
• TQueryFnData
• TError = Error
• TData = InfiniteData<TQueryFnData, unknown>
• TQueryKey extends QueryKey = QueryKey
• TPageParam = unknown
• options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>
The infinite query options to tag with the type from queryFn.
DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object
The tagged infinite query options.
The tagged infinite query options.
The infinite query options to tag with the type from queryFn.