0👍
✅
Turns out namespaced: true
needs to be in every single module that has submodules. Without it submodule getters are not taken into account. It’s very easy to overlook as there is no warning or error.
So in my case to be able to access store.getters['pages/my/orders/orders']
I had to add to pages
, my
, orders
modules:
export default {
namespaced: true, // this was missing
modules: {
...submodules
}
Source:stackexchange.com