A state-management library based on RxJS and similar to Redux but with the concept of effects inspired by Elm.
A LoopReducer
in Sudetenwaltz is a bit more complicated than a Reducer
in Redux. LoopReducer
returns a tuple, where the first element is a next state and the second is a side effect. someEffect
is an object of a class that extends Effect
class.
return [nextState, someEffect];
All effects are then passed to the epics which execute non-pure functions. Epic is the third argument to the createStore
function.