DocSpace-client/web/ASC.Web.Client/src/store/store.js
Alexey Safronov 4d18d6a894 web: Client: Refactoring: Moved actions and reducers to store folder;
Moved utils to store/services folder;
Made Home component lazy;
2019-08-15 10:48:16 +03:00

24 lines
619 B
JavaScript

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';
import rootReducer from './rootReducer';
import thunk from 'redux-thunk';
/* eslint-disable no-underscore-dangle */
const composeEnhancers = composeWithDevTools({
// options like actionSanitizer, stateSanitizer
});
const configureStore = prelodedState => (
createStore(
rootReducer,
prelodedState,
composeEnhancers(
applyMiddleware(thunk)
)
)
);
/* eslint-enable */
const store = configureStore({});
export default store;