diff --git a/src/smart-query.js b/src/smart-query.js index 4125ae5..e4d3784 100644 --- a/src/smart-query.js +++ b/src/smart-query.js @@ -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 + } }