InstrumentedEvent<EM extends EventMapBase = EventMapBase>
interfaceA single observed event delivered to an InstrumentationObserver.
Type parameters
| Name | Type | Description |
|---|---|---|
EM | extends EventMapBase | Event map. |
Properties
| Name | Type | Description |
|---|---|---|
at | number | When the store processed the event, in epoch milliseconds from StoreSpec.clock. |
changedPaths | string[] | Dotted **leaf** paths that changed, prefixed with the slice name (e.g.
"todos.items.0.title"). Empty when nothing changed. These are the exact
paths the store computed while reducing, no re-diff required. |
committed | boolean | true if the event passed middleware and ran reducers; false if vetoed. |
event | { channel: string; depth?: number; id: string; meta?: Readonly<Record<string, unknown>>; parentId?: string; payload: unknown; type: string } | The processed event, including its id, any EventMeta the emitter attached, and its
place in a causal chain. meta, parentId and depth are absent unless the event has them,
as on Event. |
nextValues | Record<string, unknown> | New value at each changed path, keyed by path. |
prevValues | Record<string, unknown> | Old value at each changed path, keyed by path. |
reason? | NotCommittedReason | Why the event did not commit. Absent when it did. |
reduceTimeMs | number | Milliseconds spent in the synchronous reduce phase for this event. |
rejected? | Rejection | Present when a reducer refused the write, carrying its reason. |
vetoedBy? | string | Which middleware vetoed, when one did and it had a name. |