Why ref wouldn't be unwrap when assign to a <ref>.value #13141
Unanswered
FoundTheWOUT
asked this question in
Help/Questions
-
ref will unwrapped when assign to a reactive obj, and will also unwrapped when passing it to the first argumrent of a ref.
const obj = reactive({}) const name = ref(1) const foo = ref() const bar = ref(name) // unwrapped obj.foo = name // unwrapped foo.value = name // not unwrapper
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment