Module computed

Module computed 

Source
Expand description

Computed (derived) state variables with dependency-ordered evaluation.

Computed variables are pure functions of other state keys. The ComputedRegistry maintains a topologically sorted list of ComputedVars so that dependencies are always evaluated before the variables that depend on them.

Structsยง

ComputedRegistry
Registry of computed variables with dependency-ordered evaluation.
ComputedVar
A computed state variable: a pure function of other state keys.