Skip to content
IC Reactor

DisplayReactorParameters

Defined in: core/src/types/display-reactor.ts:62

A = BaseActor

optional validators?: Partial<{ [M in string]: DisplayValidator<A, M> }>

Defined in: core/src/types/display-reactor.ts:69

Optional initial validators to register. Validators receive display types (strings for Principal, bigint, etc.)


clientManager: ClientManager

Defined in: core/src/types/reactor.ts:71

ReactorParameters.clientManager


name: string

Defined in: core/src/types/reactor.ts:72

ReactorParameters.name


idlFactory: (IDL) => any

Defined in: core/src/types/reactor.ts:73

any

any

ReactorParameters.idlFactory


optional canisterId?: CanisterId

Defined in: core/src/types/reactor.ts:74

ReactorParameters.canisterId


optional pollingOptions?: PollingOptions

Defined in: core/src/types/reactor.ts:84

How update calls poll read_state for their result. The reactor passes this one object to every update call, so a strategy here is shared by all of them. Use createPollingStrategy, which keeps each request’s state apart, or leave strategy out to get a fresh defaultStrategy() per request. A strategy from @icp-sdk/core/agent such as defaultStrategy() serves a single request: pass it per call through callConfig.pollingOptions instead.

ReactorParameters.pollingOptions