[DRAFT]This page is not published. Only visible in development mode.

Events

Events enable reactive state transitions. Define event types, attach handlers, and dispatch events to trigger side effects.

Create an Event

$ Create Event
$ ctrl+enter to run

Events are enum-like types. Each variant represents a different event that can be dispatched.

Full Example

$ Event + Handler + Dispatch
$ ctrl+enter to run

Create an event type, attach a handler, dispatch the event, and query the results. The handler runs automatically when the event is dispatched.