A redux reducer for standard action that merge data to state
$ npm i redux-standard-reducer --save
// suppose all business reducer exits in app/reducers/// reducer for createStoreconst finalReducer =const store =
enable this reducer
use any one of these:
STANDARD_MERGE_STATE, this reducer will handle the action
action.standard = true, this reducer will handle the action
action =typestandardpayload: ...
||the data need to be merged to the
- more see the test/simple.js
action =typestandardupdate: ...
the MIT License http://magicdawn.mit-license.org