vuejs / composition-api-rfc

Vuepress render for the Composition API RFC
https://vue-composition-api-rfc.netlify.com
104 stars 37 forks source link

why not have a toref like unref (not toRef & toRefs) #50

Closed IndexXuan closed 3 years ago

IndexXuan commented 4 years ago
const myRef = toref(someVar)

const toref = isRef(someVar) ? someVar : ref(someVar)

why unref & toref not a pairs

IndexXuan commented 3 years ago

https://github.com/vuejs/vue-next/issues/2156