File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
packages/vue-apollo-option/src Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export default class SmartApollo {
9898 const queryCb = this . initialOptions [ prop ] . bind ( this . vm )
9999 this . options [ prop ] = queryCb ( )
100100 let cb = query => {
101+ if ( this . _destroyed ) return
101102 this . options [ prop ] = query
102103 this . refresh ( )
103104 }
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ export default class SmartQuery extends SmartApollo {
9494 }
9595
9696 executeApollo ( variables ) {
97+ if ( this . _destroyed ) return
98+
9799 const variablesJson = JSON . stringify ( variables )
98100
99101 if ( this . sub ) {
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export default class SmartSubscription extends SmartApollo {
2828 }
2929
3030 executeApollo ( variables ) {
31+ if ( this . _destroyed ) return
32+
3133 const variablesJson = JSON . stringify ( variables )
3234 if ( this . sub ) {
3335 // do nothing if subscription is already running using exactly the same variables
You can’t perform that action at this time.
0 commit comments