What is payload Vuex?

A payload is simply the data passed to our mutation from the component committing the mutation . How do we do that ? Simple… this.$store.commit(“SET_NAME”,your_name) This snippet of code will mutate the state and set whatever value that is assigned to your_name, to the name property inside our Vuex state.

Sizin İçin Seçtik  BtcTurk USD işlem nasıl yapılır?

Leave a Reply

Your email address will not be published. Required fields are marked *