Upgrade all the Redux things

This commit is contained in:
Alex Gleason
2023-12-20 22:06:49 -06:00
parent 0e6fe4c74c
commit bcf3f4e01d
6 changed files with 54 additions and 44 deletions

View File

@ -1,5 +1,5 @@
import { configureStore } from '@reduxjs/toolkit';
import thunk, { ThunkDispatch } from 'redux-thunk';
import { configureStore, Tuple } from '@reduxjs/toolkit';
import { thunk, type ThunkDispatch } from 'redux-thunk';
import errorsMiddleware from './middleware/errors';
import soundsMiddleware from './middleware/sounds';
@ -9,11 +9,11 @@ import type { AnyAction } from 'redux';
export const store = configureStore({
reducer: appReducer,
middleware: [
middleware: () => new Tuple(
thunk,
errorsMiddleware(),
soundsMiddleware(),
],
),
devTools: true,
});