mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 13:23:13 +00:00
f4e3e309b1
Port 8227af8dcc
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
17 lines
519 B
JavaScript
17 lines
519 B
JavaScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import thunk from 'redux-thunk';
|
|
import appReducer from '../reducers';
|
|
import loadingBarMiddleware from '../middleware/loading_bar';
|
|
import errorsMiddleware from '../middleware/errors';
|
|
import soundsMiddleware from '../middleware/sounds';
|
|
|
|
export const store = configureStore({
|
|
reducer: appReducer,
|
|
middleware: [
|
|
thunk,
|
|
loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
|
|
errorsMiddleware(),
|
|
soundsMiddleware(),
|
|
],
|
|
});
|