Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Service/Web App/Web App Framework/
Vue
Vue
/Vue Tool/Vue Framework/
Nuxt js
Nuxt js
/Nuxt Page/
Nuxt watchQuery()
Search

Nuxt watchQuery()

Creator
Creator
Seonglae Cho
Created
Created
2021 Feb 25 13:50
Editor
Editor
Seonglae Cho
Edited
Edited
2021 Apr 13 5:46
Refs
Refs

get query

  • Type: Boolean or Array or Function (default: [])
 
 
  • bool - allow all or not
  • array - allow specific querycod
  • function - refine query
 
 
 
 
 
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.
How to watch on Route changes with Nuxt and asyncData
https://stackoverflow.com/questions/52874435/how-to-watch-on-route-changes-with-nuxt-and-asyncdata
How to watch on Route changes with Nuxt and asyncData

Recommendations

Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Service/Web App/Web App Framework/
Vue
Vue
/Vue Tool/Vue Framework/
Nuxt js
Nuxt js
/Nuxt Page/
Nuxt watchQuery()
Copyright Seonglae Cho