【发布时间】:2014-12-25 03:02:46
【问题描述】:
自从将 Meteor 升级到 1.0 版后,还有其他人从 Iron-Router 收到以下错误吗?
如果您知道如何解决此问题,请在此处发布。
路由调度从未渲染。您是否忘记在
onBeforeAction中致电this.next()?
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};
}
}
});
});
【问题讨论】:
标签: meteor iron-router