mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
20 lines
473 B
TypeScript
20 lines
473 B
TypeScript
import { createStore, applyMiddleware } from 'redux';
|
|
// import { composeWithDevTools } from 'redux-devtools-extension';
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers/rootReducer';
|
|
|
|
// const composeEnhancers = composeWithDevTools({
|
|
// trace: true,
|
|
// });
|
|
|
|
const createStoreHelper = () => (
|
|
createStore(
|
|
rootReducer,
|
|
// composeEnhancers(
|
|
applyMiddleware(thunkMiddleware)
|
|
// )
|
|
)
|
|
);
|
|
|
|
export default createStoreHelper; |