From 0a2792d1b50ae9fea6a7c278f57918a1589a3936 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:44:10 -0700 Subject: [PATCH] Keep serializability check disabled Reasoning added as a comment. --- src/store.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index 3f2231e93..b7100ae11 100644 --- a/src/store.ts +++ b/src/store.ts @@ -19,7 +19,12 @@ const store = configureStore({ // These were not checked prior to the adoption of Redux Toolkit, and were not // investigated to minimize conversion efforts. immutableCheck: false, - serializableCheck: false + + // By design, the state contains many values that are non-serializable. + // Instead of adding several ignoredPaths, disable this check entirely. + // This means time-travel debugging is not possible, but it would not be + // performant enough given the large size of the Redux state. + serializableCheck: false, }).concat(middleware), devTools: process.env.NODE_ENV !== 'production', })