pleroma/app/soapbox/store/configureStore.js
2022-01-10 16:17:52 -06:00

13 lines
496 B
JavaScript

import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import errorsMiddleware from '../middleware/errors';
import soundsMiddleware from '../middleware/sounds';
import appReducer from '../reducers';
export default function configureStore() {
return createStore(appReducer, compose(applyMiddleware(
thunk,
errorsMiddleware(),
soundsMiddleware(),
), window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f));
}