vue-async-computed icon indicating copy to clipboard operation
vue-async-computed copied to clipboard

implement set like get

Open gustawdaniel opened this issue 2 years ago • 0 comments

In regular computed i can write

computed: {
  message: {
    get () {
      return this.$store.state.obj.message
    },
    set (value) {
      this.$store.commit('updateMessage', value)
    }
  }
}

but there "set" seems to be not implemented.

https://vuex.vuejs.org/guide/forms.html#two-way-computed-property

gustawdaniel avatar Apr 28 '22 21:04 gustawdaniel