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