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

ReducerSpec

interface
yoltra/types.py:225

A reducer registration.

Properties

NameTypeDescription
coarse_onlyboolWhen `True`, skip the per-slice structural diff and only fire the coarse listener plus a whole-slice signal (performance opt-out, design §9).
fn(a0: any, a1: Event) => anyThe pure fold `(prev, event) -> next`.
namestrThe slice name this reducer owns (its key in the state dict).
stateanyThe slice's initial value (deep-copied at mount).
whenWhenWhich events this reducer folds.