fix: call loading watchers when smart query is destroyed and was loading
This commit is contained in:
@@ -258,4 +258,13 @@ export default class SmartQuery extends SmartApollo {
|
||||
return this.observer.stopPolling(...args)
|
||||
}
|
||||
}
|
||||
|
||||
destroy () {
|
||||
super.destroy()
|
||||
|
||||
if (this.loading) {
|
||||
this.watchLoading(false, -1)
|
||||
}
|
||||
this.loading = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user