mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
20 lines
455 B
TypeScript
20 lines
455 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; |