kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 195 forks source link

FlowRouter SSR [BUG] is not waiting for Subscription when Subscription is extern with DDP #634

Open TimoRuetten opened 8 years ago

TimoRuetten commented 8 years ago

There is no way that FlowRouter is waiting correctly for a subscription when its subscribed with myDDPConnection.subscribe instead of Meteor.subscribe.

qrobin commented 8 years ago

Almost the same problem. I use package from Amy Slagle named aslagle:reactive-table. There is a feature to make paginated subscriptions for every rendered page. So, if I use it, somehow FlowRouter doesn't wait for that subscription if I use FlowRouter.go().

The single way to fix it for is to use BlazeLayout.render(), but I need to make work the FlowRouter.go(), it is very important in my case.