|
|
@ -10,12 +10,10 @@ module.exports = configureStore |
|
|
|
const middlewares = [thunkMiddleware] |
|
|
|
const middlewares = [thunkMiddleware] |
|
|
|
|
|
|
|
|
|
|
|
if (developmentMode) { |
|
|
|
if (developmentMode) { |
|
|
|
console.log('Development Mode ON.') |
|
|
|
|
|
|
|
const loggerMiddleware = createLogger() |
|
|
|
const loggerMiddleware = createLogger() |
|
|
|
middlewares.push(loggerMiddleware) |
|
|
|
middlewares.push(loggerMiddleware) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore) |
|
|
|
const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore) |
|
|
|
|
|
|
|
|
|
|
|
function configureStore (initialState) { |
|
|
|
function configureStore (initialState) { |
|
|
|