Home

Issue: 1761

Parent component gets remounted when navigating to child routes

[issue link]

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

This question is available on Nuxt.js community (#c1582)