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(),
|
2020-10-07 11:08:36 -07:00
|
|
|
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
|
|
|
}
|