BEWARE: Template.SubscriptionsReady.
Joshua Comeau
31

What about if you have no tweets in the collection ?
You will be stuck in a “loading” loop.

You better should use the handler returned by Meteor.subscribe and its method ready().

Something like this :

Template.xxx.onCreated(function () {
 this.subHandler = Meteor.subscribe(“my_subscribe”);

})

Template.xxx.helpers({

initialLoadCompleted: () => {

return Template.instance().subHandler.ready();

});

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.