get query
- Type: Boolean or Array or Function (default: [])
- bool - allow all or not
- array - allow specific querycod
- function - refine query
watchQuery(newQuery, oldQuery) { // Only execute component methods if the old query string contained `bar` // and the new query string contains `foo` return newQuery.foo && oldQuery.bar }
The new fetch hook introduced in 2.12 is not affected by watchQuery
How to watch on Route changes with Nuxt and asyncData
First thing, context.route or it's alias this.$route is immutable object and should not be assigned a value. Instead, we should use this.$router and it's methods for programmatic navigation or and . As I understand, you need to render the same route, but trigger asyncData hook in order to update component's data.
https://stackoverflow.com/questions/52874435/how-to-watch-on-route-changes-with-nuxt-and-asyncdata

Seonglae Cho