Skip to content

Subscriptions inside tracker statements get duplicated #24

@JoaoCardoso193

Description

@JoaoCardoso193

Hey, I seem to be having an issue or potentially misunderstanding tracker statements.

I see that in the Readme file, there is a Meteor.subscribe call inside a tracker statement $m. If I do that in my meteor app, my subscriptions get multiplied. If I use Tracker.autorun instead, they don't.

Using "$m" for the "mainObjects-sources" subscription:
image
image

Using Tracker.autorun:
image
image

Could you please clarify what exactly is the difference between using $m and Tracker.autorun? And why should we put "Meteor.subscribe" calls inside tracker statements if it leads to the subscriptions being multiplied?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions