use !result.loading instead of result.loading === false
This commit is contained in:
+1
-1
@@ -265,7 +265,7 @@ export class SmartQuery extends SmartApollo {
|
||||
variables && (this.options.variables = variables)
|
||||
if (this.observer) {
|
||||
const result = this.observer.refetch(variables).then((result) => {
|
||||
if (result.loading === false) {
|
||||
if (!result.loading) {
|
||||
this.loadingDone()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user