fix: ignore large slices in immutable check (#7425)

This commit is contained in:
eddie 2023-10-05 11:40:52 -07:00 committed by GitHub
parent 040ebb5475
commit 0381200fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,6 +15,9 @@ export function createDefaultStore() {
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
thunk: true,
immutableCheck: {
ignoredPaths: [routingApi.reducerPath, 'logs', 'lists'],
},
serializableCheck: {
// meta.arg and meta.baseQueryMeta are defaults. payload.trade is a nonserializable return value, but that's ok
// because we are not adding it into any persisted store that requires serialization (e.g. localStorage)