Big Overhaul π
Bugfixes:
- Previously
BaseStore
was able to have actions dispatched to it before subscriptions were ready to accept them (notably when using a static property to house it). This has been fixed.
Breaking API Changes:
Middleware
can now dispatch raw actions, requiring it to be parameterised by three types.ActionStrata
has been leveraged to contain arrays of raw and refined actions, allowing for more complex behaviour in bothThunk
andMiddleware
.
API Additions:
ActionStrata
has been expanded with convenience initialisers for variadic creation.ActionStrata
has been expanded with convenience getters for the underlying values.dispatch
functions that accept raw actions orActionStrata
are now able to be run serially using theserially
parameter, allowing for deterministic behaviour in certain circumstances.