# UseReactorSuspenseInfiniteQueryParameters

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:32](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L32)

Parameters for useActorSuspenseInfiniteQuery hook.
Extends react-query's UseSuspenseInfiniteQueryOptions with custom reactor params.

## Extends

- `Omit`\<`UseSuspenseInfiniteQueryOptions`\<[`ReactorQueryData`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorquerydata/)\<[`ReactorReturnOk`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorreturnok/)\<`Service`, `Method`, `Transform`\>\>, [`ReactorReturnErr`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorreturnerr/)\<`Service`, `Method`, `Transform`\>, `Selected`, `QueryKey`, `TPageParam`\>, `"queryKey"` \| `"queryFn"` \| `"getNextPageParam"` \| `"initialPageParam"`\>

## Type Parameters

### Service

`Service`

### Method

`Method` *extends* [`FunctionName`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/functionname/)\<`Service`\>

### Transform

`Transform` *extends* [`TransformKey`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/transformkey/) = `"candid"`

### TPageParam

`TPageParam` = `unknown`

### Selected

`Selected` = `InfiniteData`\<[`ReactorQueryData`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorquerydata/)\<[`ReactorReturnOk`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorreturnok/)\<`Service`, `Method`, `Transform`\>\>, `TPageParam`\>

## Properties

### reactor

> **reactor**: [`Reactor`](https://ic-reactor.b3pay.net/v3/libs/classes/reactor/)\<`Service`, `Transform`\>

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:52](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L52)

The reactor instance to use for method calls

***

### functionName

> **functionName**: `Method`

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:54](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L54)

The method name to call on the canister

***

### getArgs

> **getArgs**: (`pageParam`) => [`ReactorArgs`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorargs/)\<`Service`, `Method`, `Transform`\>

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:56](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L56)

Function to get args from page parameter

#### Parameters

##### pageParam

`TPageParam`

#### Returns

[`ReactorArgs`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorargs/)\<`Service`, `Method`, `Transform`\>

***

### getKeyArgs?

> `optional` **getKeyArgs?**: (`args`) => `unknown`

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:68](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L68)

Narrows what the cache key derives from the call arguments.

By default the key is scoped by `getArgs(initialPageParam)`, so two
infinite queries on the same method with different arguments stay in
separate cache entries. Supply this when those args embed the cursor and
only part of them identifies the query — return the stable, serializable
portion (typically everything except the pagination field). It is required
when `initialPageParam` changes between renders, as `Date.now()` does:
without it every render keys a new query.

#### Parameters

##### args

[`ReactorArgs`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorargs/)\<`Service`, `Method`, `Transform`\>

#### Returns

`unknown`

***

### callConfig?

> `optional` **callConfig?**: `CallConfig`

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:70](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L70)

Agent call configuration (effectiveCanisterId, etc.)

***

### queryKey?

> `optional` **queryKey?**: readonly `unknown`[]

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:72](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L72)

Custom query key (auto-generated if not provided)

***

### initialPageParam

> **initialPageParam**: `TPageParam`

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:74](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L74)

Initial page parameter

***

### getNextPageParam

> **getNextPageParam**: (`lastPage`, `allPages`, `lastPageParam`, `allPageParams`) => `TPageParam` \| `null` \| `undefined`

Defined in: [react/src/hooks/useActorSuspenseInfiniteQuery.ts:76](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/hooks/useActorSuspenseInfiniteQuery.ts#L76)

Function to determine next page parameter

#### Parameters

##### lastPage

[`ReactorQueryData`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorquerydata/)\<[`ReactorReturnOk`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorreturnok/)\<`Service`, `Method`, `Transform`\>\>

##### allPages

[`ReactorQueryData`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorquerydata/)\<[`ReactorReturnOk`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/reactorreturnok/)\<`Service`, `Method`, `Transform`\>\>[]

##### lastPageParam

`TPageParam`

##### allPageParams

`TPageParam`[]

#### Returns

`TPageParam` \| `null` \| `undefined`