Redux for QML
QRedux bundle qmlified Redux and Immutability-Helper plus few utilities into a single package for using Redux in QML.
It is still under development. Use it at your own risk.
import QRedux 1.0
QRedux.createStore(reducer, [preloadedState], [enhancer])
It is equivalent to Redux.createStore()
It is equivalent to Redux.combineReducers()
It is equivalent to Redux.applyMiddleware()
It is equivalent to Redux.bindActionCreators()
It is equivalent to Redux.compose()
Mutate a copy of data without changing the original source. It is equivalent to ImmutabilityHelper.update().
Compare the different between prevState and currentState. Return undefined if they are the same.
Apply the changes to dest object. It will copy attributes from changes to dest only if such attribute is also existed on dest object.