bigbuffet-rw/app/soapbox/store/configureStore.js

14 lines
496 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import appReducer from '../reducers';
import errorsMiddleware from '../middleware/errors';
import soundsMiddleware from '../middleware/sounds';
export default function configureStore() {
return createStore(appReducer, compose(applyMiddleware(
thunk,
errorsMiddleware(),
soundsMiddleware(),
2020-03-27 13:59:38 -07:00
), window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f));
2021-08-03 12:22:51 -07:00
}