I saw in the documentation that mapGetters
can use objects (for explicit local naming) or arrays (for implicit naming) when mapping stored values to local component state ). However, the code base I'm working with uses an unfamiliar syntax where strings are mixed with arrays.
computed() { ...mapGetters('User', ['userToken']) }
What does this syntax mean?
Your link is not a document, just an example. Please refer to the actualdocumentation
So in your code,
User
is the namespace.