From 0e201f0e0211fe5c1dbb08357c496302618d0a12 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Wed, 18 Jan 2023 15:39:53 -0500 Subject: [PATCH 1/2] remove diasbling freeze --- shared/util/container.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shared/util/container.tsx b/shared/util/container.tsx index a20897dd572e..a9a2109faf3b 100644 --- a/shared/util/container.tsx +++ b/shared/util/container.tsx @@ -20,11 +20,6 @@ import USH from './use-selector' const useSelector = USH.useSelector as TypedUseSelectorHook -// don't pay for this in prod builds -if (!__DEV__) { - setAutoFreeze(false) -} - export const networkErrorCodes = [ StatusCode.scgenericapierror, StatusCode.scapinetworkerror, From b0df87c6518789e341ebc2f9c4371330dc06a2db Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Wed, 18 Jan 2023 15:40:20 -0500 Subject: [PATCH 2/2] lint --- shared/util/container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/util/container.tsx b/shared/util/container.tsx index a9a2109faf3b..ccff3b3600ff 100644 --- a/shared/util/container.tsx +++ b/shared/util/container.tsx @@ -1,5 +1,5 @@ import * as React from 'react' -import {type Draft as _Draft, setAutoFreeze} from 'immer' +import {type Draft as _Draft} from 'immer' import type {TypedActions as _TypedActions} from '../actions/typed-actions-gen' import type {ActionHandler as _ActionHandler} from './make-reducer' import type {TypedState as _TypedState} from '../constants/reducer'