EventOccurrence
interfaceOne delivery of an event to your listener. Dispatch through `occurrence.action(...)` rather than `ctx.action(...)` when you react to an event. The host then records the new action as caused by this delivery, so the causal trace shows the chain instead of two unrelated roots.
Import
import { EventOccurrence } from '@modular/sdk/view';Members2
- value
TValueThe event payload.
- action
<K extends string>(id: K, input: ModularActionInput<K>, options?: HostActionClientRunOptions) => Promise<ModularActionResult<K>>Dispatch an action attributed to this delivery.
Notes
- category
- Context