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- applicationsin 2 places : 1 used display count , group applications , other used display top 10 new applications. 
- the issues come when click in group, change route , run - subscribe('applications')- optionsfilter- applicationcollection. , top 10 new applications goes wrong : display one. 
i think because separate components lack of knowledge manage data in client via pub/sub. please me pub/sub correctly in case.
 
 
  
Comments
Post a Comment