Static GitHub Issues

[2435] asyncData called on child pages that have not been included in parent

prev: How to exclude node_modules but one package from babel-loader?
next: Out of commission Zepto

If there is a child page where the parent has not included a <nuxt-child /> the child will still run the asyncData function.

Here is a repro: https://subdued-pest.glitch.me https://glitch.com/edit/#!/subdued-pest?path=pages/_page1/_page2/_page2.vue:13:9

Should the asyncData functions for pages/child pages only be run when the child is actually included/required?

I think in this scenario it is because the child page also matches the route but I can't be sure that's why.

<!--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/c2111">#c2111</a>)</em></sub></div>