Skip to main content

Module context

Module context 

Source
Expand description

Reducer context and effect builder.

When a reducer needs to emit side-effects or inspect the ActionInput that triggered it, it receives a ReducerContext. The context provides an Effects builder for issuing system effects (HTTP, file I/O, alerts) and binding callback actions.

Structsยง

EffectBuilder
Fluent builder returned by Effects::system_effect, Effects::http_get, and Effects::file_read.
Effects
Builder for emitting side-effects from within a reducer.
ReducerContext
The context passed to modern 3-argument reducer handlers.