Skip to content

Sync/Reactive atoms #1722

Answered by dai-shi
Odonno asked this question in Ideas
Discussion options

You must be logged in to vote

No, the read function of atom must be "pure", no side effects like writing to atoms. You should prefer deriving atoms. If descriptionsAtom can simply be derived from namesAtom, it's the best. If it requires another state, create a new atom, and derive from two atoms.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Odonno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants