Skip to content

Commit d00119c

Browse files
committed
renamed option loadingChangeCb to watchLoading as promised in the documentation
1 parent 11d2a1e commit d00119c

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
@@ -235,8 +235,8 @@ export class SmartQuery extends SmartApollo {
235235
this.vm[this.options.loadingKey] += value
236236
}
237237

238-
if (this.options.loadingChangeCb) {
239-
this.options.loadingChangeCb.call(this.vm, value === 1, value)
238+
if (this.options.watchLoading) {
239+
this.options.watchLoading.call(this.vm, value === 1, value)
240240
}
241241
}
242242

0 commit comments

Comments
 (0)