EmitOptions
interfacePer-emit options.
Properties
| Name | Type | Description |
|---|---|---|
dedupKey? | string | Opt this specific emit into **identity-based** deduplication: if another
event with the same (channel, type, dedupKey) was emitted within the dedup
window, this one is skipped. Unlike content-based dedup
(StoreSpec.dedupWindowMs), it never coalesces two *distinct* logical
emits that merely share a payload — only re-fires of the *same* keyed emit
(e.g. a React Strict Mode double-invoke). Works even when dedupWindowMs
is 0, using a short default window. |
id? | string | Use this exact id for the event instead of generating one. |
meta? | Readonly<Record<string, unknown>> | Metadata to attach to this event, carried through the pipeline untouched and visible to
reducers, middleware, effects, subscribers and instrumentation. See EventMeta. |
skipDedup? | boolean | Bypass deduplication for this emit entirely, even when the store was created with
StoreSpec.dedupWindowMs greater than 0. |