Static GitHub Issues

[2429] Help wanted: Possible to get child depth in asyncData?

prev: components mounted no work in window7 IE9
next: server.js :#126 swallows third party errors during server side rendering

I can see in VueRouter that you can get the view depth with: this.$vnode.data.routerViewDepth

I can also see that the nuxt-child appears to send some data to router-view which include nuxtChildDepth

I'm look to get this depth out in the asyncData function - would this be possible? I know asyncData is not called with this context but is there any way to access the props passed to a component or the depth? I couldn't see the variable in any of the context passed but thought I'd ask.

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