You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that Recoil 0.4.0 introduced a breaking change around how the DefaultValue and effects work. The onSet method no longer gets the DefaultValue when reset, but instead an actual value. The logic to remove the key from local storage was dependent on this.
Update to this. I mentioned on the Recoil repo that it appears to function correctly if you use a selector as the default value to an atom. I've switched to using this for now, but it seems like that might not stay as well.
It appears that Recoil 0.4.0 introduced a breaking change around how the
DefaultValue
and effects work. TheonSet
method no longer gets theDefaultValue
when reset, but instead an actual value. The logic to remove the key from local storage was dependent on this.https://recoiljs.org/blog/2021/07/30/0.4.0-release#fixes-and-optimizations
The text was updated successfully, but these errors were encountered: