diff --git a/ui/src/store/index.js b/ui/src/store/index.js index a585188..a9f6a86 100644 --- a/ui/src/store/index.js +++ b/ui/src/store/index.js @@ -1,6 +1,9 @@ import { combineReducers, configureStore } from "@reduxjs/toolkit"; import { Provider } from "react-redux"; -import { persistStore, persistReducer } from 'redux-persist'; +import { + persistReducer, persistStore, + FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER +} from "redux-persist"; import storage from 'redux-persist/lib/storage'; // defaults to localStorage for web // slices @@ -50,6 +53,11 @@ const AppStore = ({ children, preloadedState = {}, returnStore = false }) => { const store = configureStore({ reducer: persistedReducer, preloadedState: state, + middleware: (getDefaultMiddleware) => getDefaultMiddleware({ + serializableCheck: { + ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER], + } + }) }); const persistor = persistStore(store);