After reviewing the Vuex documentation, I noticed that mapGetters
can accept either an object (for specific local naming) or an array (for general naming) when connecting a store value to a component's state. However, in the project where I am currently working, I encountered a unique syntax that combines a string with an array.
computed() {
...mapGetters('User', ['userToken'])
}
I'm curious about the meaning behind this unusual syntax. Can anyone explain?