Skip to content

this.$subscribe is not a function #78

Open
@diavrank

Description

@diavrank

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions