-
It seems with an atomic state structures there's often state that makes sense to have separately as it's generally mutated independently but you may want to come up with use cases that touches multiple maps or atoms. Is it possible to update multiple atoms/maps from one action (I don't think it is)? Otherwise, what would be the best way to do it? Create a helper function that wraps multiple actions (one per each atom/map)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
React has re-render bunching. If you update 10 atoms in one callback, only one re-render will be called. Svelte has bunching as well. DO you have any another reasons to be worry about multiple changes in the atoms? |
Beta Was this translation helpful? Give feedback.
React has re-render bunching. If you update 10 atoms in one callback, only one re-render will be called.
Svelte has bunching as well.
DO you have any another reasons to be worry about multiple changes in the atoms?