Fix redux middlewares

merge-requests/3194/head
Alex Gleason 2024-10-26 18:15:27 -05:00
rodzic 220cd6b6b7
commit c72c65430c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
import { configureStore, Tuple, type AnyAction, type ThunkDispatch } from '@reduxjs/toolkit';
import { configureStore, type AnyAction, type ThunkDispatch } from '@reduxjs/toolkit';
import errorsMiddleware from './middleware/errors';
import soundsMiddleware from './middleware/sounds';
@ -6,10 +6,11 @@ import appReducer from './reducers';
export const store = configureStore({
reducer: appReducer,
middleware: () => new Tuple(
errorsMiddleware(),
soundsMiddleware(),
),
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware().concat(
errorsMiddleware(),
soundsMiddleware(),
),
devTools: true,
});