Replies: 1 comment
-
const atom1 = atom(1)
const atom2 = atom((get) => get(atom1)) // it doesn't matter if it has `write` defined
const atom3 = atom((get) => get(atom1) * 2)
const atom4 = atom((get) => get(atom2) * 2) In this case,
🕺 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
should computed inherit from older ancestor or not ?
My question is : does using atom1 or atom2 for atom3 make any difference ?
ps : thank you for jotai, it's very cool
Beta Was this translation helpful? Give feedback.
All reactions