componentDidMount) {
Meteor.subscribe(‘name’)
}
Obviously this is not right place for subscription but I am curious that why this subscription is never getting ready ?.
componentDidMount) {
Meteor.subscribe(‘name’)
}
Obviously this is not right place for subscription but I am curious that why this subscription is never getting ready ?.
subscribe is asyn, it will be called when your component mount, but subscribe won’t be ready yet. You might need the tracker.autorun within the componentDidMount like
componentDidMount(){ this.cTracker.autorun(()={indent sub=Meteor.subscribe('name') /////// do something with sub.ready() }) } componentWillUmount(){ this.c.stop(); }