From 3d4e68fda877fa413c6edb46db056fbc95f1c248 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 21 May 2018 20:18:17 +0200 Subject: [PATCH] feat: ApolloQuery deep prop --- README.md | 1 + src/components/ApolloQuery.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 183e11e..7da0b60 100644 --- a/README.md +++ b/README.md @@ -1247,6 +1247,7 @@ Props: - `context`: See [apollo context](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-context) - `skip`: Boolean disabling query fetching - `clientId`: Used to resolve the Apollo Client used (defined in ApolloProvider) +- `deep`: Boolean to use deep Vue watchers - `tag`: String HTML tag name (default: `div`) Scoped slot props: diff --git a/src/components/ApolloQuery.js b/src/components/ApolloQuery.js index 32b5788..d6457ce 100644 --- a/src/components/ApolloQuery.js +++ b/src/components/ApolloQuery.js @@ -53,6 +53,11 @@ export default { default: undefined, }, + deep: { + type: Boolean, + default: undefined, + }, + tag: { type: String, default: 'div', @@ -105,6 +110,7 @@ export default { notifyOnNetworkStatusChange: this.notifyOnNetworkStatusChange, context () { return this.context }, skip () { return this.skip }, + deep: this.deep, manual: true, result (result) { const { errors, loading, networkStatus } = result