Skip to content
IC Reactor

SuspenseInfiniteQueryResult

Defined in: react/src/createSuspenseInfiniteQuery.ts:241

Result from createActorSuspenseInfiniteQuery

TPageData

The raw page data type

TPageParam

The page parameter type

Selected = InfiniteData<TPageData, TPageParam>

The type after select transformation

TError = Error

The error type

fetch: () => Promise<Selected>

Defined in: react/src/createSuspenseInfiniteQuery.ts:248

Fetch first page in loader (uses ensureInfiniteQueryData for cache-first)

Promise<Selected>


useSuspenseInfiniteQuery: UseSuspenseInfiniteQueryWithSelect<TPageData, TPageParam, Selected, TError>

Defined in: react/src/createSuspenseInfiniteQuery.ts:251

React hook for components - supports pagination


invalidate: () => Promise<void>

Defined in: react/src/createSuspenseInfiniteQuery.ts:259

Invalidate the cache (refetches if query is active)

Promise<void>


getQueryKey: () => readonly unknown[]

Defined in: react/src/createSuspenseInfiniteQuery.ts:262

Get query key (for advanced React Query usage)

readonly unknown[]


getCacheData: {(): Selected | undefined; <TFinal>(select): TFinal | undefined; }

Defined in: react/src/createSuspenseInfiniteQuery.ts:268

Read data directly from cache without fetching. Returns undefined if data is not in cache.

(): Selected | undefined

Selected | undefined

<TFinal>(select): TFinal | undefined

TFinal

(data) => TFinal

TFinal | undefined