On my apps homepage all the posts show up, and the collection Posts.find().count() is accurate. But when I go to the individual post page Posts.find().count() gives me 0. I’m pretty sure it has to do with my routing and subscription through the routing. What exactly is going on?
Your subscribtion lives only for this route (everything that you defined inside waitOn). When your navigate to singlePost, previous route clear all its data and subscribtions so you get a clear collection!
For what it’s worth I would recommend calling your subscription in your template instead of the router. There be dragons. Any time a reactive variable changes the router will re-run which can cause all kinds of problems down the road.
Also instead of waitOn, using a loading spinner usually feels faster to the user.