La referencia de la API está disponible solo en inglés por ahora.

EmitToStore

interface
messages.ts:316

extends BaseMessage

Emit an event to a store from an extension.

Allows extensions to inject synthetic events into a store's pipeline. The event goes through the full middleware and reducer chain. Requires emit on the target store and eventEmit on the extension.

Properties

NameTypeDescription
event{ channel: string; payload: unknown; type: string }
sourceIdstringUUID of the sender (store wrapper ID or extension ID).
sourceRoleDevtoolsRoleRole of the sender.
storeIdstring
timestampstringISO 8601 timestamp of when the message was created.
type"EMIT_TO_STORE"Discriminant field identifying the message type.