This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-05-02 11:39:06 -07:00
|
|
|
import { configureStore } from '@reduxjs/toolkit';
|
2017-01-09 03:37:15 -08:00
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
import appReducer from '../reducers';
|
2017-01-16 04:27:58 -08:00
|
|
|
import loadingBarMiddleware from '../middleware/loading_bar';
|
2017-01-09 03:37:15 -08:00
|
|
|
import errorsMiddleware from '../middleware/errors';
|
2017-03-13 09:12:30 -07:00
|
|
|
import soundsMiddleware from '../middleware/sounds';
|
2016-08-24 08:56:44 -07:00
|
|
|
|
2023-05-02 11:39:06 -07:00
|
|
|
export const store = configureStore({
|
|
|
|
reducer: appReducer,
|
|
|
|
middleware: [
|
2017-01-17 11:09:03 -08:00
|
|
|
thunk,
|
|
|
|
loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
|
|
|
|
errorsMiddleware(),
|
2020-03-08 08:02:36 -07:00
|
|
|
soundsMiddleware(),
|
2023-05-02 11:39:06 -07:00
|
|
|
],
|
|
|
|
});
|