Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Personally, I rarely use refs. I think they have more use when creating general-purpose libraries for Vue.

You can also just call "toRefs()" on a "reactive()" object though.

Refs are also useful if you want to destructure a reactive object without breaking the reactivity, scroll down just below this:

https://composition-api.vuejs.org/api.html#torefs



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: