dispatching action in action vuex code example
Example: vuex call action from another action
actions:{
get1: ({ commit, dispatch }) => {
dispatch('get2');
},
get2: ({commit}) => {
//things
},
}
actions:{
get1: ({ commit, dispatch }) => {
dispatch('get2');
},
get2: ({commit}) => {
//things
},
}