I’m new to Meteor and I’m currently building a web app. I’m wondering what’s the best place to fetch documents between everything in the route definition using the data property, or everything in the template helper or a mix of them.
Currently, I’m mixing it. For a page with a collection, I get them from the template helper. But on a details page, since I get the document id from the route, I fetch the document within the route definition.
But, as an enterprise developer, who’s used to layered architectures and design patterns, it feels strange to access data on different places.
I’ll read your input with great interest!