Skip to content

Commit 22368e0

Browse files
authored
docs: clarify comment regarding userIds in dependent queries example (#9288)
* docs: clarify comment in dependent queries example for userIds * docs: clarify comment regarding userIds in dependent queries example
1 parent 6f3d93c commit 22368e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/framework/react/guides/dependent-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const usersMessages = useQueries({
8080
queryFn: () => getMessagesByUsers(id),
8181
}
8282
})
83-
: [], // if users is undefined, an empty array will be returned
83+
: [], // if userIds is undefined, an empty array will be returned
8484
})
8585
```
8686

docs/framework/vue/guides/dependent-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const queries = computed(() => {
4848

4949
// Then get the users messages
5050
const usersMessages = useQueries({
51-
queries, // if users is undefined, an empty array will be returned
51+
queries, // if userIds.value is undefined or has no items, an empty array will be returned
5252
})
5353
```
5454

0 commit comments

Comments
 (0)