diff --git a/packages/vue-apollo/src/smart-query.js b/packages/vue-apollo/src/smart-query.js index 4cc11391..62b0082c 100644 --- a/packages/vue-apollo/src/smart-query.js +++ b/packages/vue-apollo/src/smart-query.js @@ -79,6 +79,17 @@ export default class SmartQuery extends SmartApollo { } } + generateApolloOptions (variables) { + const apolloOptions = super.generateApolloOptions(variables) + + if (this.vm.$isServer) { + // Don't poll on the server, that would run indefinitely + delete apolloOptions.pollInterval + } + + return apolloOptions + } + executeApollo (variables) { const variablesJson = JSON.stringify(variables)