Skip to content

Commit 3d4e68f

Browse files
author
Guillaume Chau
committed
feat: ApolloQuery deep prop
1 parent 877755f commit 3d4e68f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ Props:
12471247
- `context`: See [apollo context](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-context)
12481248
- `skip`: Boolean disabling query fetching
12491249
- `clientId`: Used to resolve the Apollo Client used (defined in ApolloProvider)
1250+
- `deep`: Boolean to use deep Vue watchers
12501251
- `tag`: String HTML tag name (default: `div`)
12511252

12521253
Scoped slot props:

src/components/ApolloQuery.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ export default {
5353
default: undefined,
5454
},
5555

56+
deep: {
57+
type: Boolean,
58+
default: undefined,
59+
},
60+
5661
tag: {
5762
type: String,
5863
default: 'div',
@@ -105,6 +110,7 @@ export default {
105110
notifyOnNetworkStatusChange: this.notifyOnNetworkStatusChange,
106111
context () { return this.context },
107112
skip () { return this.skip },
113+
deep: this.deep,
108114
manual: true,
109115
result (result) {
110116
const { errors, loading, networkStatus } = result

0 commit comments

Comments
 (0)