Skip to content

Commit 709fcd9

Browse files
committed
use !result.loading instead of result.loading === false
1 parent 7ebc14d commit 709fcd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smart-apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class SmartQuery extends SmartApollo {
265265
variables && (this.options.variables = variables)
266266
if (this.observer) {
267267
const result = this.observer.refetch(variables).then((result) => {
268-
if (result.loading === false) {
268+
if (!result.loading) {
269269
this.loadingDone()
270270
}
271271
})

0 commit comments

Comments
 (0)