jjzjj

collectionHandle

全部标签

javascript - meteor :如何在 collectionHandle.ready() 为真后触发辅助函数的重新运行

这是我旧版本的新版本question:感谢TomColeman的帮助,我终于弄明白了如何正确检查订阅是否ready()。我目前的代码结构是这样的:/client/app.js:eventsHandle=null;groupsHandle=null;//...//FirstDeps.autorun()://DoesnotdependonanySessionvar,shouldjustruneverytimeDeps.autorun(function(){eventsHandle=Meteor.subscribe("events",function(){console.log('Deps.