2023-05-02 18:39:06 +00:00
|
|
|
import { configureStore } from '@reduxjs/toolkit';
|
2017-01-09 11:37:15 +00:00
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
import appReducer from '../reducers';
|
2017-01-16 12:27:58 +00:00
|
|
|
import loadingBarMiddleware from '../middleware/loading_bar';
|
2017-01-09 11:37:15 +00:00
|
|
|
import errorsMiddleware from '../middleware/errors';
|
2017-03-13 16:12:30 +00:00
|
|
|
import soundsMiddleware from '../middleware/sounds';
|
2016-08-24 15:56:44 +00:00
|
|
|
|
2023-05-02 18:39:06 +00:00
|
|
|
export const store = configureStore({
|
|
|
|
reducer: appReducer,
|
|
|
|
middleware: [
|
2017-01-17 19:09:03 +00:00
|
|
|
thunk,
|
|
|
|
loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
|
|
|
|
errorsMiddleware(),
|
2020-03-08 15:02:36 +00:00
|
|
|
soundsMiddleware(),
|
2023-05-02 18:39:06 +00:00
|
|
|
],
|
|
|
|
});
|