Replies: 1 comment
-
I would use atom without default value and return undefined if there is no value set. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there anyway to check if a Recoil value (atom/selector) is available without triggering its effects/default value in a
selector
?Currently in selector there is only
get
method will always trigger the atom effects/default value, would be great to have ahas
orisSet
/isDefault
getter that only checks & subscribers to a value without triggering it.Current workaround is to create a separate boolean atom just to start that value and update when it's appropriate, but it feels redundant.
Beta Was this translation helpful? Give feedback.
All reactions