why toRef two times, connect will lost #1133
Unanswered
WormGirl
asked this question in
Help and Questions
Replies: 1 comment
-
Because the const changeFormState = () => {
formState.form = {
displaySettings: '1'
}
console.log(setForm.value) // <old value>, since both of `formState.form` and `form.value` are NOT same reference.
} const changeInnerFormState = () => {
formState.form.displaySettings = '2'
console.log(setForm.value) // '2', since both of `formState.form` and `form.value` are still same reference.
} |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when replace
formState.form
the setForm data not change.Beta Was this translation helpful? Give feedback.
All reactions