📄 tanstack/query/latest/docs/framework/angular/reference/functions/infinitequeryoptions

File: infinitequeryoptions.md | Updated: 11/15/2025

Source: https://tanstack.com/query/latest/docs/framework/angular/reference/functions/infinitequeryoptions



TanStack

Query v5v5

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

Angular logo

Angular

Version

Latest

Search...

+ K

Menu

Getting Started

Guides & Concepts

API Reference

ESLint

Examples

Framework

Angular logo

Angular

Version

Latest

Menu

Getting Started

Guides & Concepts

API Reference

ESLint

Examples

On this page

infiniteQueryOptions

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.

Param
-----

The infinite query options to tag with the type from queryFn.

Call Signature
--------------

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.

### Type Parameters

TQueryFnData

TError = Error

TData = InfiniteData<TQueryFnData, unknown>

TQueryKey extends readonly unknown[] = readonly unknown[]

TPageParam = unknown

### Parameters #### options

DefinedInitialDataInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>

The infinite query options to tag with the type from queryFn.

### Returns

CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object

The tagged infinite query options.

The tagged infinite query options.

### Param

The infinite query options to tag with the type from queryFn.

Call Signature
--------------

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.

### Type Parameters

TQueryFnData

TError = Error

TData = InfiniteData<TQueryFnData, unknown>

TQueryKey extends readonly unknown[] = readonly unknown[]

TPageParam = unknown

### Parameters #### options

UnusedSkipTokenInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>

The infinite query options to tag with the type from queryFn.

### Returns

OmitKeyof<CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>, "queryFn"> & object & object

The tagged infinite query options.

The tagged infinite query options.

### Param

The infinite query options to tag with the type from queryFn.

Call Signature
--------------

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.

### Type Parameters

TQueryFnData

TError = Error

TData = InfiniteData<TQueryFnData, unknown>

TQueryKey extends readonly unknown[] = readonly unknown[]

TPageParam = unknown

### Parameters #### options

UndefinedInitialDataInfiniteOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam>

The infinite query options to tag with the type from queryFn.

### Returns

CreateInfiniteQueryOptions <TQueryFnData, TError, TData, TQueryKey, TPageParam> & object & object

The tagged infinite query options.

The tagged infinite query options.

### Param

The infinite query options to tag with the type from queryFn.

Edit on GitHub

Home

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

[###### 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)

scarf analytics