This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Resetting nested atomFamily atoms #1787
Unanswered
HadiModarres
asked this question in
Q&A
Replies: 1 comment
-
Hard to say without a repro, unless one of the deps you're trying to read is actually async. Consider using |
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
-
I have a state with this structure:
And I'm trying to reset all atoms in this structure with the following code:
Same issue in using a selectorFamily to achieve the same goal:
I'm keeping a list of ids and iterating over them and then call reset on specific atoms in the nested atomFamily, but the reset is never called for those atoms (in the for loop). It is succesfully called for the first level items however. Having a hard time achieving this, is this a bug or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions