You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Akryum , I tried to use subcriptions in Options API by using the syntax:
mounted(){// Subscribes to the 'threads' publication with two parametersthis.$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.
The text was updated successfully, but these errors were encountered:
Potential workaround (works for me): You can use this.$subscribe from mounted provided you also have a meteor object even if empty: meteor: {},
You can also access reactive variables for subscription parameters if you use autorun
Note: $subReady does not get setup properly, but you can set up your local data variable subReady like this: this.subReady.subname = this.$subscribe('subname').ready and then use this.subReady instead of $subReady
Hi @Akryum , I tried to use subcriptions in Options API by using the syntax:
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.The text was updated successfully, but these errors were encountered: