Open ayroblu opened 1 year ago
I believe this is a duplicity of https://github.com/facebookexperimental/Recoil/issues/2151
I believe I'm experiencing this as well -- returning DefaultValue
from a async (): Promise<T | DefaultValue>
directly into setSelf
will make it return DefaultValue
, instead of the (explicitly set) default of undefined
.
Seeing how this project no longer seems to be maintained, I'm starting the migration to jotai :(
I have the following code:
It's failing because the DefaultValue object is being returned from the
get
, where I'd expect the default to beundefined
(see the MARK comment)I'm using Recoil v0.7.6