diff --git a/src/vue-plugin.js b/src/vue-plugin.js index 78ea28b..79379be 100644 --- a/src/vue-plugin.js +++ b/src/vue-plugin.js @@ -182,6 +182,9 @@ export default { stop () {}, } } else { */ + if (!this._trackerHandles) { + throw new Error('$subscribe called on destroyed or uninitialized component'); + } const key = args[0]; const oldSub = this._subs[key] let handle = Vue.config.meteor.subscribe.apply(this, args);