We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164b7bb commit c8ab8dbCopy full SHA for c8ab8db
src/smart-subscription.js
@@ -24,6 +24,10 @@ export default class SmartSubscription extends SmartApollo {
24
25
const apolloOptions = this.generateApolloOptions(variables)
26
27
+ if (typeof apolloOptions.updateQuery === 'function') {
28
+ apolloOptions.updateQuery = apolloOptions.updateQuery.bind(this.vm)
29
+ }
30
+
31
if (this.options.linkedQuery) {
32
this.sub = this.options.linkedQuery.subscribeToMore(apolloOptions)
33
} else {
0 commit comments