SharedReducerOptions
Extends
Section titled “Extends”Properties
Section titled “Properties”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’.
Inherited from
Section titled “Inherited from”leader?
Section titled “leader?”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.
leaderOptions?
Section titled “leaderOptions?”optional leaderOptions?: LeaderOptions;Election settings, when this reducer elects its own leader. Ignored if leader is passed.
transport?
Section titled “transport?”optional transport?: (name) => Transport;Transport factory, mainly for tests. Defaults to defaultTransport.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |