Meteor: Why is Iron Router's onBeforeAction called multiple times?

前端 未结 1 1862
野趣味
野趣味 2020-12-20 22:58

When I visit a route in my browser I expect Iron Router to call onBeforeAction once before loading the route. But it looks like it is being called 3 times when first loading

相关标签:
1条回答
  • 2020-12-20 23:41

    onBeforeAction is run and rerun reactively. You probably want onRun.

    0 讨论(0)
提交回复
热议问题