Skip to content

Commit 0b04372

Browse files
author
Guillaume Chau
authored
Merge pull request #44 from tillkolter/hotfix/fix_watchLoading
Renamed option loadingChangeCb to watchLoading
2 parents f176ef9 + d00119c commit 0b04372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smart-apollo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export class SmartQuery extends SmartApollo {
228228
this.vm[this.options.loadingKey] += value
229229
}
230230

231-
if (this.options.loadingChangeCb) {
232-
this.options.loadingChangeCb.call(this.vm, value === 1, value)
231+
if (this.options.watchLoading) {
232+
this.options.watchLoading.call(this.vm, value === 1, value)
233233
}
234234
}
235235

0 commit comments

Comments
 (0)