Rxova
Skip to content

SharedReducerOptions

optional key?: string;

Which reducer this is, when several share a bus name. Default 'default'.

The same axis as a store key: one bus, many reducers, each ordered independently of the others.


optional kind?: PeerKind;

What this client announces itself as. Defaults to ‘worker’ when there is no document, else ‘tab’.

CommonOptions.kind


optional leader?: Leader;

Reuse an existing leader rather than electing another. A reducer needs a sequencer, and a page that already has a Leader for this bus should not run a second election to get one.


optional leaderOptions?: LeaderOptions;

Election settings, when this reducer elects its own leader. Ignored if leader is passed.


optional transport?: (name) => Transport;

Transport factory, mainly for tests. Defaults to defaultTransport.

ParameterType
namestring

Transport

CommonOptions.transport