You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the below route, and I do not understand why it gets called more than one time first returning the actual value and then returning undefined.
Router.route('/trainee/:_id',{name: 'traineePage',template: 'traineePage',data: function(){varcurrentTraineeId=this.params._id;console.log("data function "+Meteor.users.findOne({_id: currentTraineeId}));returnMeteor.users.findOne({_id: currentTraineeId});},waitOn: function(){varcurrentTraineeId=this.params._id;console.log("waitOn function "+currentTraineeId);returnMeteor.subscribe('traineePlans',currentTraineeId)}})
I get this in the console
waitOn function nTi7xgcqg4cGZcYSn
routes.js:73 data function [object Object]
routes.js:78 waitOn function nTi7xgcqg4cGZcYSn
routes.js:73 data function [object Object]
main.js:84 traineePage.helpers.traineeName elhadiahmed
main.js:92 traineePlans.helpers.plan [object Object]
routes.js:73 data function undefined
main.js:84 traineePage.helpers.traineeName elhadiahmed
main.js:84 traineePage.helpers.traineeName undefined
main.js:92 traineePlans.helpers.plan [object Object]
The text was updated successfully, but these errors were encountered:
Hi,
I have the below route, and I do not understand why it gets called more than one time first returning the actual value and then returning undefined.
I get this in the console
The text was updated successfully, but these errors were encountered: