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