Replies: 1 comment 2 replies
-
Only the solution I came up with instantly is to nest it. const state = proxy({
foo: 1,
barRef: ref({
bar: {
baz: 2
}
})
}) No magic, right? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the following code, a change on the
bar
property triggers the update:It seems,
ref
is used when we need to ignore the updates inside the object (like,{ baz: 2}
).But how can we ignore the update when the
bar
property changes?Beta Was this translation helpful? Give feedback.
All reactions