import {createStore, applyMiddleware} from 'redux';
import rootReducer from '../reducers';
import reduxImmutableStateInvariant from 'redux-immutable-state-invariant';
import thunk from 'redux-thunk';

export default function configureStore(initialState){
  return createStore(
    rootReducer,
    initialState,
    applyMiddleware(thunk, reduxImmutableStateInvariant())
  );
}

@@ -1,16 +1,17 @@
 import %7B
+ 
 createSt
@@ -30,16 +30,26 @@
 ddleware
+, compose 
 %7D from '
@@ -205,16 +205,213 @@
 hunk';%0A%0A
+// In order to use the devtools (https://github.com/gaearon/redux-devtools)%0A// we prepare it to enhance the store.%0Aconst devtools = window.devToolsExtension ? window.devToolsExtension() : f =%3E f;%0A%0A
 export d
@@ -454,16 +454,17 @@
 alState)
+ 
 %7B%0A  retu
@@ -514,16 +514,31 @@
 lState,%0A
+    compose(%0A  
     appl
@@ -587,16 +587,38 @@
 riant())
+,%0A      devtools%0A    )
 %0A  );%0A%7D%0A

Enhance store with devtools (#20)