Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start using modern Redux #1710

Merged
merged 11 commits into from
Oct 12, 2023
9 changes: 8 additions & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ const middleware = [

const store = configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(middleware),
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
// TODO: Go through reducers and see why the state is not immutable nor serializable.
// These were not checked prior to the adoption of Redux Toolkit, and were not
// investigated to minimize conversion efforts.
immutableCheck: false,
victorlin marked this conversation as resolved.
Show resolved Hide resolved
serializableCheck: false
}).concat(middleware),
devTools: process.env.NODE_ENV !== 'production',
})

Expand Down