DEV Community

Discussion on: Vue state management from the ground up

Collapse
 
nevcos profile image
Filipe Costa

Great article!

I would love to not loose this syntax when moving to Vuex:

  methods: {
    voteForRed () { state.voteForRed() },
    voteForBlue () { state.voteForBlue() },
  }

Frankly, this never convinced me...

  methods: {
    voteForRed () { store.commit('voteForRed') },
    voteForBlue () { store.commit('voteForBlue') },
  }

... but maybe some day.

Thanks!