How do you access rootState
in getters?
const getters = {
getParams: rootState => {
return rootState.route.params
},
}
The above doesn't work. How is this done?
How do you access rootState
in getters?
const getters = {
getParams: rootState => {
return rootState.route.params
},
}
The above doesn't work. How is this done?
If this getter is in a module
rootState
is the third arguments.