File: infinitequeryoptions.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
Angular
Version
v5
Search...
+ K
Menu
Getting Started
Guides & Concepts
API Reference
ESLint
Examples
Framework
Angular
Version
v5
Menu
Getting Started
Guides & Concepts
API Reference
ESLint
Examples
On this page
Copy Markdown
Function: infiniteQueryOptions()
================================
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.
ts
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
Defined in: infinite-query-options.ts:88
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 readonly unknown[] = readonly unknown[]
• TPageParam = unknown
DefinedInitialDataInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>
The infinite query options to tag with the type from queryFn.
CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
The tagged infinite query options.
The tagged infinite query options.
The infinite query options to tag with the type from queryFn.
ts
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): OmitKeyof<CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, "queryFn"> & object & object
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): OmitKeyof<CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, "queryFn"> & object & object
Defined in: infinite-query-options.ts:119
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 readonly unknown[] = readonly unknown[]
• TPageParam = unknown
UnusedSkipTokenInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>
The infinite query options to tag with the type from queryFn.
OmitKeyof<CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>, "queryFn"> & object & object
The tagged infinite query options.
The tagged infinite query options.
The infinite query options to tag with the type from queryFn.
ts
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
function infiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>(options): CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
Defined in: infinite-query-options.ts:150
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 readonly unknown[] = readonly unknown[]
• TPageParam = unknown
UndefinedInitialDataInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>
The infinite query options to tag with the type from queryFn.
CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object
The tagged infinite query options.
The tagged infinite query options.
The infinite query options to tag with the type from queryFn.
[###### Want to Skip the Docs?
Query.gg - The Official React Query Course
\
“If you’re serious about *really* understanding React Query, there’s no better way than with query.gg”—Tanner Linsley
Learn More](https://query.gg/?s=tanstack)
