`withImmer` is exposing frozen objects?
Opened this issue · 0 comments
sabigara commented
TypeError: Cannot assign to read only property 'email' of object '#<Object>'
at _AtpAgent.resumeSession (agent.ts:156:20)
at async resumeSession (atp.ts:171:7)
at async getAccount (getAccount.ts:4:19)
at async loader (index.tsx:10:19)
at async callLoaderOrAction (router.ts:3364:16)
at async Promise.all (index 0)
at async callLoadersAndMaybeResolveData (router.ts:2104:19)
at async handleLoaders (router.ts:1503:7)
at async startNavigation (router.ts:1261:50)
at async Object.navigate (router.ts:1104:12)
overrideMethod @ react_devtools_backend_compact.js:2367
resumeSession @ atp.ts:173
await in resumeSession (async)
getAccount @ getAccount.ts:4
loader @ index.tsx:10
runHandler @ router.ts:3320
callLoaderOrAction @ router.ts:3364
(anonymous) @ router.ts:2106
callLoadersAndMaybeResolveData @ router.ts:2105
handleLoaders @ router.ts:1503
startNavigation @ router.ts:1261
navigate @ router.ts:1104
push @ components.tsx:78
(anonymous) @ hooks.tsx:212
handleSwitchAccount @ LoginRoute.tsx:23
handleClickSwitch @ AccountListItem.tsx:76
callCallback2 @ react-dom.development.js:4164
invokeGuardedCallbackDev @ react-dom.development.js:4213
invokeGuardedCallback @ react-dom.development.js:4277
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4291
executeDispatch @ react-dom.development.js:9041
processDispatchQueueItemsInOrder @ react-dom.development.js:9073
processDispatchQueue @ react-dom.development.js:9086
dispatchEventsForPlugins @ react-dom.development.js:9097
(anonymous) @ react-dom.development.js:9288
batchedUpdates$1 @ react-dom.development.js:26140
batchedUpdates @ react-dom.development.js:3991
dispatchEventForPluginEventSystem @ react-dom.development.js:9287
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ react-dom.development.js:6465
dispatchEvent @ react-dom.development.js:6457
dispatchDiscreteEvent @ react-dom.development.js:6430
Show 24 more frames
lo