javascript - Meteor - two components subscribe the same publication -


i'm working on meteor project , meet problem pub/sub of meteor. intend separate view components, each components has owned subscribes data render, use iron:route manage app's flow. problem : i've publication:

meteor.publishrelations('applications', function (opt) {..} 
  • at homepage components, subscribe applications in 2 places : 1 used display count , group applications , other used display top 10 new applications. please check image

  • the issues come when click in group, change route , run subscribe('applications') options filter application collection. , top 10 new applications goes wrong : display one. please check image

i think because separate components lack of knowledge manage data in client via pub/sub. please me pub/sub correctly in case.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -