Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Commit

Permalink
refactor(redux): createStore with enhancer as last arg (allowed in Re…
Browse files Browse the repository at this point in the history
…dux >= 3.1)
  • Loading branch information
bhj authored and David Zukowski committed Apr 17, 2016
1 parent 8d5d878 commit 3982ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function configureStore (initialState = {}, history) {
}

// Create final store and subscribe router in debug env ie. for devtools
const store = middleware(createStore)(rootReducer, initialState)
const store = createStore(rootReducer, initialState, middleware)

if (module.hot) {
module.hot.accept('./rootReducer', () => {
Expand Down

0 comments on commit 3982ee5

Please sign in to comment.