mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update with-redux-code-splitting example (patch) (#5252)
This commit is contained in:
parent
b68b705446
commit
e892898dfe
|
@ -8,7 +8,7 @@ const DEFAULT_STATE = {version: 1}
|
|||
|
||||
const {actionCreator, getState: getAboutState} = namespaceConfig('about', DEFAULT_STATE)
|
||||
|
||||
const bumpVersion = actionCreator(function bumpVersion (state, increment) {
|
||||
const bumpVersion = actionCreator('bumpVersion', function(state, increment) {
|
||||
return {...state, version: state.version + increment}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue