Static GitHub Issues

[227] The data function has no context parameter in layout component

prev: Add ignore to page to avoid nuxt route auto generation
next: Where should I put the inline script?
<template>
  <div id="layout">
    <nuxt/>
    <my-footer/>
  </div>
</template>

<script>
import MyFooter from '~components/Footer.vue'

export default {
  data (context) {
    console.log(context) // undefined
    return {
      isClient: false
    }
  },
  components: {
    MyFooter
  }
}
</script>
<!--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/c193">#c193</a>)</em></sub></div>