I have a Vue 2 app and it's using the composition API package so that I can create vue components with composition API.
How does one create and use a setter for a computed property with the Vue composition API?
I am looking at the docs, and I do not see any documentation for creating a setter for a computed property. In the test suite, I see an example:
const b = computed({
get: () => a.value + 1,
set: (v) => (a.value = v - 1),
})
However I am not too sure how to access the set method on b. Does anyone know how to create a computed property with a set method for the composition API? And how can I use the set method so I can change the computed property's value?