Static GitHub Issues

[2536] How can I use store data in head method

prev: error page layout conflict
next: Error: Cannot find module 'vue-meta'

For example, There is a page just like '/movie/_id.vue'.

Before render this page, I must fetch the data of this movie. And I wan't save the data in store. Otherwise I wan't my page's head is the movie title for SEO.

Here is the question:

If I fetch data in fetch method, I can't reach the movie data in head method. If I fetch data in asyncDatamethod, I can't save the data in my store.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2204">#c2204</a>)</em></sub></div>