com.github.benlau.qredux

version 0.0.1

To install:

❯ qpm install com.github.benlau.qredux

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.

Reference

  1. My first attempt to use Redux in a QML application – Medium

API

import QRedux 1.0

QRedux.createStore(reducer, [preloadedState], [enhancer])

It is equivalent to Redux.createStore()

API Reference ‧ Redux

QRedux.combineReducers(reducers)

It is equivalent to Redux.combineReducers()

API Reference ‧ Redux

QRedux.applyMiddleware(...middlewares)

It is equivalent to Redux.applyMiddleware()

API Reference ‧ Redux

QRedux.bindActionCreators(actionCreators, dispatch)

It is equivalent to Redux.bindActionCreators()

API Reference ‧ Redux

QRedux.compose(...functions)

It is equivalent to Redux.compose()

API Reference ‧ Redux

QRedux.update()

Mutate a copy of data without changing the original source. It is equivalent to ImmutabilityHelper.update().

Immutability Helpers - React

QRedux.diff(prevState, currentState)

Compare the different between prevState and currentState. Return undefined if they are the same.

QRedux.patch(dest, changes)

Apply the changes to dest object. It will copy attributes from changes to dest only if such attribute is also existed on dest object.

QRedux.mapReducers(mappingTable)

QRedux.chainReducers(reducers)

QRedux.signalProxyMiddleware(proxy)

QRedux.syncMiddleware(provider)

Author

Ben Lau

Info
View on Github

License: APACHE_2_0

Installs
Today 0
This week 0
This month 2
This year 342
Total 342
Dependencies

None.

Versions