File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-apollo" ,
3- "version" : " 1.2.3 " ,
3+ "version" : " 1.2.5 " ,
44 "description" : " Vue apollo integration" ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ export class SmartQuery extends SmartApollo {
166166 } )
167167 } else if ( this . observer ) {
168168 // Update variables
169- this . observer . setVariables ( variables )
169+ // Don't use setVariables directly or it will ignore cache
170+ this . observer . setOptions ( this . generateApolloOptions ( variables ) )
170171 } else {
171172 if ( this . sub ) {
172173 this . sub . unsubscribe ( )
@@ -184,7 +185,9 @@ export class SmartQuery extends SmartApollo {
184185
185186 const currentResult = this . observer . currentResult ( )
186187 if ( currentResult . loading ) {
187- this . applyLoadingModifier ( 1 )
188+ if ( ! this . loading ) {
189+ this . applyLoadingModifier ( 1 )
190+ }
188191 this . loading = true
189192 }
190193
You can’t perform that action at this time.
0 commit comments