Replies: 1 comment 5 replies
-
atomFamily just provides a cache of atoms, and how atoms are defined is out of the scope. (Even if you remove an atom from a family, the atom is not removed.) That said, it would be nice if you share some ideas, and maybe that might help some other use cases. It feels like there's a solution without atomFamily for your case. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I found a somewhat annoying issue using atomFamily & atomWithStorage together.
Say I have this code:
When I attempt FamilyAtom.remove(param), The entry at localStorage will still remain.
I can think of a couple of workarounds but I think it should be fixed natively by Jotai.
What do you think?
Thank you for the slick Library 🙏
Beta Was this translation helpful? Give feedback.
All reactions