3 ms·
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()"
by gavinray 6y ago
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 https://composition-api.vuejs.org/api.html#torefs