From 1272ee4b77cdc4d0f3098b8b2e9765346e6284b8 Mon Sep 17 00:00:00 2001 From: Quentin de Longraye Date: Fri, 30 Nov 2018 22:40:14 +0100 Subject: [PATCH 1/2] component will be renderless if null is passed to tag --- docs/api/apollo-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/apollo-query.md b/docs/api/apollo-query.md index 03abc4b9..44ecc98b 100644 --- a/docs/api/apollo-query.md +++ b/docs/api/apollo-query.md @@ -11,7 +11,7 @@ - `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`); if `undefined`, the component will be renderless (the content won't be wrapped in a tag) +- `tag`: String HTML tag name (default: `div`); if `null`, the component will be renderless (the content won't be wrapped in a tag) - `debounce`: Number of milliseconds for debouncing refetches (for example when the variables are changed) - `throttle`: Number of milliseconds for throttling refetches (for example when the variables are changed) From d2a3ff4fb00fbeb7f51d5947823e6b2b6e126134 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Wed, 9 Jan 2019 09:57:12 +0100 Subject: [PATCH 2/2] Update apollo-query.md --- docs/api/apollo-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/apollo-query.md b/docs/api/apollo-query.md index 44ecc98b..7a8a15f3 100644 --- a/docs/api/apollo-query.md +++ b/docs/api/apollo-query.md @@ -11,7 +11,7 @@ - `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`); if `null`, the component will be renderless (the content won't be wrapped in a tag) +- `tag`: String HTML tag name (default: `div`); if falsy (for example `null` or `undefined`), the component will be renderless (the content won't be wrapped in a tag). In this case, only the first child will be rendered. - `debounce`: Number of milliseconds for debouncing refetches (for example when the variables are changed) - `throttle`: Number of milliseconds for throttling refetches (for example when the variables are changed)