This solution works, but it has an issue. What is it? Meteor.subscribe("getCommets"); var userSubs = new SubsManager(); Template.comments.helpers({ getComments: function(){ return Comments.find(); }, author: function(){ var user = Users.findOne(this.author); if(user){ return user.name; }else{ userSubs.subscribe("getUser", this.author); } } })
Meteor - JavaScript Web Framework MCQs
This solution works, but it has an issue. What is it? Meteor.subscribe("getCommets"); var userSubs = new SubsManager(); Template.comments.helpers({ getComments: function(){ return Comments.find(); }, author: function(){ var user = Users.findOne(this.author); if(user){ return user.name; }else{ userSubs.subscribe("getUser", this.author); } } })
Answer
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Meteor - JavaScript Web Framework Skill Assessment