Home

Issue: 1548

Nested dynamic route with query string parameter does not re-render parent view

[issue link]

Copying this from a comment on #1408:


Curiously, with 1.0.0-rc8 I observe the opposite behavior. I have a project with nested views:

pages/
--index.vue
--index/
----_id.vue

The parent view (index.vue) displays search results, keying off a query string parameter (?q=<terms>). <nuxt-link> links that change the query string parameter, e.g.:

/?q=foo
/?q=bar

…do not cause the outer view to re-render. The asyncData, fetch, and mounted hooks do not fire after the initial render.

Is this as-designed? Is there a way to specify that query string parameters affect a route and should cause a re-render?

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