Skip to main content

Module prepare

Module prepare 

Source
Expand description

prepare_event: decide what an incoming event means before any reducer runs.

Three outcomes: reject it, fold it (the host calls the reducer, then reduce_step), or apply it as pure bookkeeping (a lifecycle transition the host writes as-is).

Functionsยง

prepare_event
Classify an event and return either a reducer call or a lifecycle write-set.