I have this code and I want save the result of Promise.all into two variables.
The problem is that I gets undefined when (this.data = data)
const {data,recents} : any = await Promise.all([
this.$store.dispatch('algo', input),
this.$store.dispatch('algo', input)
])
this.data = data
this.recents = recents