feat(ui): disable immutable redux check

The immutable and serializable checks for redux can cause substantial performance issues. The immutable check in particular is pretty heavy. It's only run in dev mode, but this and really slow down the already-slower performance of dev mode.

The most important one for us is serializable, which has far less of a performance impact.

The immutable check is largely redundant because we use immer-backed RTK for everything and immer gives us confidence there.

Disable the immutable check, leaving serializable in.
This commit is contained in:
psychedelicious 2023-09-15 11:33:57 +10:00 committed by Kent Keirsey
parent 34a09cb4ca
commit 704e016f05

View File

@ -86,7 +86,7 @@ export const store = configureStore({
.concat(autoBatchEnhancer());
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware()
getDefaultMiddleware({ immutableCheck: false })
.concat(api.middleware)
.concat(dynamicMiddlewares)
.prepend(listenerMiddleware.middleware),