The watchQuery Property

Watch query strings and execute component methods on change (asyncData, fetch, validate, layout, ...)

  • Type: Array (default: [])

Use the watchQuery key to set up a watcher for query strings. If the defined strings change, all component methods (asyncData, fetch, validate, layout, ...) will be called. Watching is disabled by default to improve performance.

export default {
  watchQuery: ['page']

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!