Iron Router:waiton显示加载模板,但在订阅准备好时从不呈现最终模板

时间:2014-12-06 22:13:15

标签: meteor iron-router

我正在测试最新版本的Iron Router V1。我在前面遇到了关于waitOn钩子的问题:     显示加载模板     加载订阅(调用订阅时调用很好)     但最终模板未呈现

控制台日志消息询问我是否在OnBeforeAction挂钩中使用了this.next(),这就是全部。

以下是源代码:https://github.com/Rebolon/meteor-tutorial-router 以下是示例应用:http://tuto-router.meteor.com/waiton

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

文档没有提到onRerun()的this.next()要求。

onRerun: function () {
  console.info('onRerun');
  this.next();
}

应该做的。