2019-09-14 12:42:30 +02:00
|
|
|
import { createStore, applyMiddleware } from 'redux';
|
2019-10-16 17:27:37 +02:00
|
|
|
// import { composeWithDevTools } from 'redux-devtools-extension';
|
2019-09-14 12:42:30 +02:00
|
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
|
|
|
|
|
|
import rootReducer from '../reducers/rootReducer';
|
|
|
|
|
|
2019-10-16 17:27:37 +02:00
|
|
|
// const composeEnhancers = composeWithDevTools({
|
|
|
|
|
// trace: true,
|
|
|
|
|
// });
|
2019-09-14 17:36:11 +02:00
|
|
|
|
2019-09-14 12:42:30 +02:00
|
|
|
const createStoreHelper = () => (
|
|
|
|
|
createStore(
|
|
|
|
|
rootReducer,
|
2019-10-16 17:27:37 +02:00
|
|
|
// composeEnhancers(
|
2019-09-14 17:36:11 +02:00
|
|
|
applyMiddleware(thunkMiddleware)
|
2019-10-16 17:27:37 +02:00
|
|
|
// )
|
2019-09-14 12:42:30 +02:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export default createStoreHelper;
|