Skip to content

Commit 43ebc21

Browse files
committed
Better wording in queryWhen docs
1 parent d61abf0 commit 43ebc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/composition-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export default {
471471
472472
### Using queryWhen
473473
474-
The `queryWhen` option for both `useFind` and `useGet` comes in handy when you want to, say, not query if an item already exists. This next example shows how to stop the `get` request if you already have a patient with the current `id`.
474+
The `queryWhen` option for both `useFind` and `useGet` comes in handy when you want to conditional prevent API queries. One use case for this is to prevent extra queries by checking if an item already exists in the vuex store. This next example shows how to stop the `get` request if you already have a patient record with the current `id`.
475475
476476
```html
477477
<template>

0 commit comments

Comments
 (0)