-
I have an object let store = proxy({
a:null,
b:2
})
funcation Api(){
store.a = 1
} I want to monitor the change of a and assign a value to b. What's the best way to deal with it? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Oct 21, 2022
Replies: 1 comment 2 replies
-
You can try |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
beilo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try
proxyWithComputed
orderive
from valtio/utils.