Skip to content

Instantly share code, notes, and snippets.

@jahvi

jahvi/Home.vue

Created Aug 11, 2019
Embed
What would you like to do?
<script>
export default {
async asyncData ({ store, route }) {
// ...
// Prefetch CMS data on the server
await store.dispatch('cmsBlock/list', {
filterValues: ['home_banner'] // Array of CMS blocks identifiers on the page
})
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.