File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3434 "node-libs-browser" : " ^0.5.2" ,
3535 "react-addons-test-utils" : " ^0.14.0" ,
3636 "react-transform-hmr" : " ^1.0.0" ,
37+ "redux-immutable-state-invariant" : " ^1.1.1" ,
3738 "webpack" : " ^1.9.11" ,
3839 "webpack-dev-middleware" : " ^1.2.0" ,
3940 "webpack-hot-middleware" : " ^2.2.0"
Original file line number Diff line number Diff line change 11import { createStore , applyMiddleware , compose } from 'redux' ;
22import thunk from 'redux-thunk' ;
3+ import invariant from 'redux-immutable-state-invariant' ;
34import reducer from '../reducers' ;
45
56export default function configureStore ( initialState ) {
67 const finalCreateStore = compose (
7- applyMiddleware ( thunk ) ,
8+ applyMiddleware ( invariant ( ) , thunk ) ,
89 window . devToolsExtension ? window . devToolsExtension ( ) : f => f
910 ) ( createStore ) ;
1011
You can’t perform that action at this time.
0 commit comments