dispatchEvent
fun dispatchEvent(state: <Error class: unknown class>, binding: Action.Emit, handlers: Map<String, Action>, payload: <Error class: unknown class> = JsonNull): ApplyResult
Resolves a fired binding against the document's handlers region and runs one interaction.
A binding naming a handler runs that handler, with the binding's own params materialized and merged over payload — so the handler reads authored arguments and runtime data through the same $event pointer. A name with no handler is not an error: the binding is applied as-is, which for an event action means it lands in ApplyResult.events and reaches the host unchanged.