[Vuejs]-Vuejs: Use stored data withing nuxt pages

0👍

You can use asyncData to load the data from the store (https://nuxtjs.org/guide/async-data)

async asyncData(context) { 
  let result = await context.store.dispatch('my-data')
  return {
    data: result
  }
}

Leave a comment