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 1
1
{
2
2
"name" : " vue-apollo" ,
3
- "version" : " 1.2.3 " ,
3
+ "version" : " 1.2.5 " ,
4
4
"description" : " Vue apollo integration" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ export class SmartQuery extends SmartApollo {
166
166
} )
167
167
} else if ( this . observer ) {
168
168
// 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 ) )
170
171
} else {
171
172
if ( this . sub ) {
172
173
this . sub . unsubscribe ( )
@@ -184,7 +185,9 @@ export class SmartQuery extends SmartApollo {
184
185
185
186
const currentResult = this . observer . currentResult ( )
186
187
if ( currentResult . loading ) {
187
- this . applyLoadingModifier ( 1 )
188
+ if ( ! this . loading ) {
189
+ this . applyLoadingModifier ( 1 )
190
+ }
188
191
this . loading = true
189
192
}
190
193
You can’t perform that action at this time.
0 commit comments