EmitToStore
interfaceextends 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
| Name | Type | Description |
|---|---|---|
event | { channel: string; payload: unknown; type: string } | |
sourceId | string | UUID of the sender (store wrapper ID or extension ID). |
sourceRole | DevtoolsRole | Role of the sender. |
storeId | string | |
timestamp | string | ISO 8601 timestamp of when the message was created. |
type | "EMIT_TO_STORE" | Discriminant field identifying the message type. |