This is my module:
const ModuleA={
namespaced:true,
state:{
categoryList:[
{name:'all', isActive:true},
{name:'negotiation', isActive:false},
]
},
getters:{
getCategory:(state)=>(index)=>{
return state.categoryList[index];
},
}
}
Without namespaced:true, I can call getCategory with this.$store.getters.getCategory(this.index).
How to call getCategory with namespaced:true? I can't use mapGetters because I have to pass parameter to the function.