Home

Issue: 2444

in nested routes parent page data resets

[issue link]

when you have a nested page route using nuxt-child, the data set on the parent page resets to the default when you change route of the child.

pages

  • parent
    • child.vue
    • child2.vue
  • parent.vue

if parent has data of

{ toggled: false }

and you set toggled to true and change the child route, toggled will go back to false.

expected behavior

the parent data should stay and only reset if the parent is remounted.

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