createInfiniteQuery

Function: createInfiniteQuery()

ts
function createInfiniteQuery<
  TQueryFnData,
  TError,
  TData,
  TQueryKey,
  TPageParam,
>(options, queryClient?): CreateInfiniteQueryResult<TData, TError>
function createInfiniteQuery<
  TQueryFnData,
  TError,
  TData,
  TQueryKey,
  TPageParam,
>(options, queryClient?): CreateInfiniteQueryResult<TData, TError>

Type Parameters

TQueryFnData

TError = Error

TData = InfiniteData<TQueryFnData, unknown>

TQueryKey extends QueryKey = QueryKey

TPageParam = unknown

Parameters

options: StoreOrVal<CreateInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey, TPageParam>>

queryClient?: QueryClient

Returns

CreateInfiniteQueryResult<TData, TError>

Defined in

packages/svelte-query/src/createInfiniteQuery.ts:16