diff --git a/docs/api/apollo-query.md b/docs/api/apollo-query.md index 61d658c..fb0af06 100644 --- a/docs/api/apollo-query.md +++ b/docs/api/apollo-query.md @@ -14,6 +14,7 @@ - `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) +- `prefetch`: If `false`, will skip prefetching during SSR ## Scoped slot diff --git a/src/components/ApolloQuery.js b/src/components/ApolloQuery.js index b3e72d0..afa8745 100644 --- a/src/components/ApolloQuery.js +++ b/src/components/ApolloQuery.js @@ -72,6 +72,11 @@ export default { type: String, default: 'div', }, + + prefetch: { + type: Boolean, + default: true, + }, }, data () { @@ -123,6 +128,7 @@ export default { context () { return this.context }, skip () { return this.skip }, deep: this.deep, + prefetch: this.prefetch, manual: true, result (result) { const { errors, loading, networkStatus } = result