mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Make production environment work
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import { createStore, applyMiddleware } from 'redux';
|
||||
import { composeWithDevTools } from 'redux-devtools-extension';
|
||||
// import { composeWithDevTools } from 'redux-devtools-extension';
|
||||
import thunkMiddleware from 'redux-thunk';
|
||||
|
||||
import rootReducer from '../reducers/rootReducer';
|
||||
|
||||
const composeEnhancers = composeWithDevTools({
|
||||
trace: true,
|
||||
});
|
||||
// const composeEnhancers = composeWithDevTools({
|
||||
// trace: true,
|
||||
// });
|
||||
|
||||
const createStoreHelper = () => (
|
||||
createStore(
|
||||
rootReducer,
|
||||
composeEnhancers(
|
||||
// composeEnhancers(
|
||||
applyMiddleware(thunkMiddleware)
|
||||
)
|
||||
// )
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user