When using vuex mapState, the documentation says you can use spread syntax as below, which I have working as intended.
I'm just curious as to what this is actually doing, so I have a better understanding of using spread syntax.
Would this...
computed: {
...mapState([
'message',
'storeArray'
])
}
Be effectively doing this... ?
computed: {
message(){
return this.$store.state.message
}
storeArray(){
return this.$store.state.storeArray
}
}