polemius / recoil-persist

Package for recoil state manager to persist and rehydrate store

Home Page:https://polemius.dev/recoil-persist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error when hydrating state

lmartins opened this issue · comments

I've recently started seeing the following error:
Uncaught (in promise) TypeError: Cannot read property '__tag' of null
referring to this line:

if (newValue.__tag === 'DefaultValue' && state.hasOwnProperty(node.key)) {

Any idea of what could be causing it?

@lmartins Thank you for adding the issue. I have released a new 2.4.0 version with the fix. Please check the new version.

@polemius that was quick, thank you!