computed: { ...mapState({ // to access local state with `this`, a normal function must be used countPlusLocalState (state) { return state.count + this.localCount } } })