Static GitHub Issues

[2658] Update route parameters without re-rendering

prev: app.styl not found on Nuxt.js - Vuetify Starter Template
next: AWS Failed to execute 'setRequestHeader' on 'XMLHttpRequest' with Evaporate.js

Nuxt.js has been an absolute breeze to move my site over to. However, I have a scenario as follows:

+ course
   - _slug
      - _part.vue

I end up with the path:

/course/nuxt-is-awesome/introduction

I'd like to be able to:

this.$router.push({ params: { part: 'next-part' } })

and not have the page completely re-render. Instead, I'd like to add a watcher to the route param and just update the Vuex store, using:

watch: {
   '$route.params.part' (part) {
      // ...
   }
}

The way I've achieved this currently is using a query string, e.g. ?part=introduction, and then pushing to the query string (which does not re-render) and then watching the query string to do the above.

Is this possible?

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