text: import { createStore, applyMiddleware } from 'redux';
  import promiseMiddleware from 'redux-promise';
  import createLogger from 'redux-logger';
  import Immutable from 'immutable';
  import rootReducer from '../reducers';
  
  const initialState = Immutable.Map();
  
  export default function configureStore(preloadedState = initialState) {
    const store = createStore(
      rootReducer,
      // preloadedState,
      // applyMiddleware(createLogger({ stateTransformer: state => state.toJS() }, promiseMiddleware))
    );
  
    return store;
  }
  
  export const store = configureStore();
  