# SuspenseInfiniteQueryResult

Defined in: [react/src/createSuspenseInfiniteQuery.ts:241](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L241)

Result from createActorSuspenseInfiniteQuery

## Type Parameters

### TPageData

`TPageData`

The raw page data type

### TPageParam

`TPageParam`

The page parameter type

### Selected

`Selected` = `InfiniteData`\<`TPageData`, `TPageParam`\>

The type after select transformation

### TError

`TError` = `Error`

The error type

## Properties

### fetch

> **fetch**: () => `Promise`\<`Selected`\>

Defined in: [react/src/createSuspenseInfiniteQuery.ts:248](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L248)

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

#### Returns

`Promise`\<`Selected`\>

***

### useSuspenseInfiniteQuery

> **useSuspenseInfiniteQuery**: [`UseSuspenseInfiniteQueryWithSelect`](https://ic-reactor.b3pay.net/v3/libs/interfaces/usesuspenseinfinitequerywithselect/)\<`TPageData`, `TPageParam`, `Selected`, `TError`\>

Defined in: [react/src/createSuspenseInfiniteQuery.ts:251](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L251)

React hook for components - supports pagination

***

### invalidate

> **invalidate**: () => `Promise`\<`void`\>

Defined in: [react/src/createSuspenseInfiniteQuery.ts:259](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L259)

Invalidate the cache (refetches if query is active)

#### Returns

`Promise`\<`void`\>

***

### getQueryKey

> **getQueryKey**: () => readonly `unknown`[]

Defined in: [react/src/createSuspenseInfiniteQuery.ts:262](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L262)

Get query key (for advanced React Query usage)

#### Returns

readonly `unknown`[]

***

### getCacheData

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

Defined in: [react/src/createSuspenseInfiniteQuery.ts:268](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/createSuspenseInfiniteQuery.ts#L268)

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

#### Call Signature

> (): `Selected` \| `undefined`

##### Returns

`Selected` \| `undefined`

#### Call Signature

> \<`TFinal`\>(`select`): `TFinal` \| `undefined`

##### Type Parameters

###### TFinal

`TFinal`

##### Parameters

###### select

(`data`) => `TFinal`

##### Returns

`TFinal` \| `undefined`