Qualcun altro riceve il seguente errore da Iron-Router dall'aggiornamento di Meteor alla versione 1.0?Meteor v 1.0 e Iron: Router
Si prega di postare qui se si sa come risolvere questo problema.
Itinerario non inviato mai reso. Hai dimenticato di chiamare
this.next()
in unonBeforeAction
?
Router.map(function() {
Router.route('profileShow', {
waitOn: function() {
if (Meteor.user()) {
Meteor.subscribe('userData');
} else {
this.next();
}
},
data: function() {
if (Meteor.user()) {
return {profile: Meteor.user().profile};
}
}
});
});
Solo per aggiungere che potrebbe essere un onRun che causa l'errore anche se il messaggio dice che era un OnBeforeAction. Il messaggio di errore potrebbe essere migliore. –