-
hi! If i write this:
I got: What is the correct way for update DATA atom? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Jul 9, 2021
Replies: 1 comment 3 replies
-
It's prohibited to write a value directly to a derived atom. (because it may cause inconsistencies.) This pattern is implemented as |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
prrrcl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's prohibited to write a value directly to a derived atom. (because it may cause inconsistencies.)
This pattern is implemented as
atomWithDefault
injotai/utils
. You could also do the similar way on your end.