[Vuejs]-Vuex: Accessing state from anther module inside different module getter

0👍

When defined in a module, a getter receives rootState as a third argument:

const getters = {
    authorizedAdminLinks: (state, getters, rootState) =>  _.filter(rootState.globals.adminLinks, link => link.seePrivilege >= rootState.globals.auth.privileges),
}

Leave a comment