Static GitHub Issues

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

prev: Transition doesn't work if using layout other then default
next: Middleware subdirectory ?

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?

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