of your whole application is stored in an object tree within a single store. • State is read-only The only way to change the state is to emit an action. • Changes are made with pure functions Pure reducers specify how the state tree is transformed.
subscriber • State: key the data of the app • Action: Define which should be modify, and provide necessary parameter • Reducer: Modify the state by the action • View/Controller/Presenter: Get the event and dispatch it to store
state • To change the state application can dispatch actions to Store • For each action Store compute new state using pure function f(s, a) (called reducer) • Store replace current state with new state
Java/Android https://github.com/Yarikx/reductor • Unidirectional data flow on Android using Kotlin https://speakerdeck.com/cesarvaliente/unidirectional-data- flow-on-android-using-kotlin