meteor-vue / vue-meteor-tracker

Use Meteor Tracker reactivity inside Vue components
90 stars 20 forks source link

this.$subscribe is not a function #78

Open diavrank opened 1 year ago

diavrank commented 1 year ago

Hi @Akryum , I tried to use subcriptions in Options API by using the syntax:

mounted () {
  // Subscribes to the 'threads' publication with two parameters
  this.$subscribe('thread', ['new', 10])
}

In my app, I am using both versions: this.$subscribe() and the object way { meteor: { $subscribe: [] } }. Actually, I use the second one, but the first one is important as well because I need the subscription starts on the mounted hook.

diavrank commented 1 year ago

Hi @Akryum , have you had the chance to check this?