我正在测试最新版本的Iron Router V1。我在前面遇到了关于waitOn钩子的问题: 显示加载模板 加载订阅(调用订阅时调用很好) 但最终模板未呈现
控制台日志消息询问我是否在OnBeforeAction挂钩中使用了this.next(),这就是全部。
以下是源代码:https://github.com/Rebolon/meteor-tutorial-router 以下是示例应用:http://tuto-router.meteor.com/waiton
感谢您的帮助
答案 0 :(得分:1)
文档没有提到onRerun()的this.next()要求。
onRerun: function () {
console.info('onRerun');
this.next();
}
应该做的。