0
Q:

vuex access getters from actions

getters: {
    getAppData: state => () => {
        return state.data;
    }
}
actions: {
    sendDataToServer({ commit , getters }, payload) {
        // call getter 
        const data = getters.getAppData
    }
},
1

New to Communities?

Join the community