ReducerSpec
interfaceA reducer registration.
Properties
| Name | Type | Description |
|---|---|---|
coarse_only | bool | When `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) => any | The pure fold `(prev, event) -> next`. |
name | str | The slice name this reducer owns (its key in the state dict). |
state | any | The slice's initial value (deep-copied at mount). |
when | When | Which events this reducer folds. |