import thunkMiddleware from 'redux-thunk';
import { createStore, compose, combineReducers, applyMiddleware } from 'redux';
import { routerReducer } from 'react-router-redux';

import artists from '../reducers/artists';
import albums from '../reducers/albums';
import application from '../reducers/application';


const customCreateStore = compose(
  applyMiddleware(thunkMiddleware)
)(createStore);


const reducers = combineReducers({
  routing: routerReducer,

  application,
  artists,
  albums,
});


export default customCreateStore(reducers);

import thunkMiddleware from 'redux-thunk';
import { createStore, compose, combineReducers, applyMiddleware } from 'redux';
import { routerReducer } from 'react-router-redux';

import artists from '../reducers/artists';
import albums from '../reducers/albums';
import application from '../reducers/application';


const customCreateStore = compose(
  applyMiddleware(thunkMiddleware),
  (window.devToolsExtension ? window.devToolsExtension() : f => f)
)(createStore);


const reducers = combineReducers({
  routing: routerReducer,

  application,
  artists,
  albums,
});


export default customCreateStore(reducers);

Update store to work with redux-devTools
Update store to work with redux-devTools
