File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,13 @@ export default class SmartQuery extends SmartApollo {
70
70
}
71
71
72
72
executeApollo ( variables ) {
73
- if ( this . observer ) {
74
- // Update variables
75
- // Don't use setVariables directly or it will ignore cache
76
- this . observer . setOptions ( this . generateApolloOptions ( variables ) )
77
- } else {
78
- if ( this . sub ) {
79
- this . sub . unsubscribe ( )
80
- }
81
-
82
- // Create observer
83
- this . observer = this . vm . $apollo . watchQuery ( this . generateApolloOptions ( variables ) )
73
+ if ( this . sub ) {
74
+ this . sub . unsubscribe ( )
84
75
}
85
76
77
+ // Create observer
78
+ this . observer = this . vm . $apollo . watchQuery ( this . generateApolloOptions ( variables ) )
79
+
86
80
this . startQuerySubscription ( )
87
81
88
82
if ( this . options . fetchPolicy !== 'no-cache' ) {
You can’t perform that action at this time.
0 commit comments