Skip to content

Commit

Permalink
[Client] Perf: SerializableStateInvariantMiddleware #159: 🐞 fix(Fix s…
Browse files Browse the repository at this point in the history
…erializableCheck and immutableCheck configuration in store.ts):
  • Loading branch information
ballyalley-o committed May 3, 2024
1 parent 65b7908 commit 93ce8f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ const store = configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: {
ignoredActions: [PERSIST, REHYDRATE]
}
serializableCheck: GLOBAL.APP_ENV === KEY.PRODUCTION ? undefined : false,
immutableCheck: false
}).concat(apiSlice.middleware),

devTools: GLOBAL.APP_ENV !== KEY.PRODUCTION
Expand Down

0 comments on commit 93ce8f1

Please sign in to comment.