Vote count:
0
Ok, so I am new to Meteor and to programming as a whole kinda and I have a simple best practices kind of question.
I am using Iron Router, and have been using it to subscribe to different paths. I am trying to be as lean as possible and only subscribe to the collections I need using waitOn(). But after doing some reading this afternoon it seems as though it might be overkill.
What is the best practice for when you should subscribe to a collection?
My guess is if you have a collection you use on multiple pages load the whole collection in the beginning. Then only load things you only need every now and then through Iron Router's waitOn.
I know that there isn't a catch-all answer for this, and every project is different, but any advice would be appreciated.
Thanks
Aucun commentaire:
Enregistrer un commentaire