Updating Atom from selector #1899
MuhammadHamzaChippa
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it a good practice to keep updating a one global state using selector and selectorFamily, because throughout my application I am using one atom (I have to do complex drag and drops using dnd-kit that is why maintaing a one single global state). If it is not what alternative approach I can use? I am maintaing the data structure like this.
In this data structure I am adding the C and D and other key value pair by selecting items from the UI and subitems are fetched using the API call for which I am using selector to update the atom. Am I doing things right or should I use another practice ?
Beta Was this translation helpful? Give feedback.
All reactions