Skip to content

Commit cf3cd6d

Browse files
macoshitaatinux
authored andcommitted
1 parent e908af2 commit cf3cd6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

en/api/pages-watchquery.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ description: Watch query strings and execute component methods on change (asyncD
66
# The watchQuery Property
77

88
> Watch query strings and execute component methods on change (asyncData, fetch, validate, layout, ...)
9-
- **Type:** `Array` (default: `[]`)
9+
- **Type:** `Boolean` or `Array` (default: `[]`)
1010

1111
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.
1212

13+
If you want to set up a watcher for all query strings, set `watchQuery: true`.
14+
1315
```js
1416
export default {
1517
watchQuery: ['page']

0 commit comments

Comments
 (0)