Skip to content
Snippets Groups Projects
Select Git revision
  • c034bf18e224a4e011742f0c096ab33f67f1cc5f
  • master default protected
  • 2023-ujoncdelutan
  • 2023-update
  • 1.4.7 protected
  • 1.4.6 protected
  • 1.4.5 protected
  • 1.4.4 protected
  • 1.4.3 protected
  • 1.4.2 protected
  • 1.4.1 protected
  • 1.4.0 protected
  • 1.3.19 protected
  • 1.3.18 protected
  • 1.3.17 protected
  • 1.3.16 protected
  • 1.3.15 protected
  • 1.3.14 protected
  • 1.3.13 protected
  • 1.3.12 protected
  • 1.3.10 protected
  • 1.3.11 protected
  • 1.3.9 protected
  • 1.3.8 protected
24 results

configureStore.js

Blame
  • configureStore.js 421 B
    import { createStore, applyMiddleware } from 'redux';
    import thunkMiddleware from 'redux-thunk';
    import { createLogger } from 'redux-logger';
    import rootReducer from './reducers';
    
    const loggerMiddleware = createLogger();
    
    export default function configureStore(preloadedState) {
      return createStore(
        rootReducer,
        preloadedState,
        applyMiddleware(
          thunkMiddleware,
          loggerMiddleware,
        ),
      );
    }