Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
This release adds support for the
InitialStateparameter in each of the reducer composition utilities.
This parameter optionally defines the fall-back state value used during the state initialization boot-strap process.
In general, redux expects your state to have concrete values (i.e. something other than
undefined). This means that the reduction entry point to each state element should define a default. Keeping this in mind, the
InitialStateparameter is optional, because some reducers are "by design" (when combined in a composition) intended to be mid-stream processors (i.e. NOT the reduction entry point).
As is turns out, this simplifies the examples found in the astx-redux-util v0.1.0 release, in that NO app-supplied wrapper function is needed for the sole purpose of providing this initial value ... rather: the
InitialStatecan be specified directly as a parameter to the astx-redux-util function.