Static GitHub Issues

[1761] Parent component gets remounted when navigating to child routes

prev: How to set the resource path in js
next: Input type being stripped on `nuxt generate`

So first of all I'll give you a link to a fiddle demonstrating the expected behavior. This demo is using plain vue with vue-router

Expected behavior

I set some initial state on the parent route, and navigating to and from the child route does not change the parent route.

However, when using nuxt I experience the following behavior. Unexpected behavior

In this instance I am using nuxt-child instead of router-view and Nuxt page components instead of plain vue components. The routes are generated by my directory structure which looks like:

pages/
--random.vue
--random/
----_slug.vue

I believe this may be related to another issue I raised #1756

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