La referencia de la API está disponible solo en inglés por ahora.

Event

interface
yoltra/types.py:44

An immutable record of a single write. Events are the only way state changes: `emit(channel, type, payload)` constructs one, the store stamps it with a unique `id`, and reducers fold it into slice state.

Properties

NameTypeDescription
channelstrThe routing channel (e.g. `"ui"`).
idstrUnique id, stamped by the store for dedup and devtools tracking.
payloadanyThe event payload; any value.
typestrThe event type within the channel (e.g. `"add"`). Named to match the documented handler API (`event.type`).