kadirahq / flow-router

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

[SSR] post-SSR callback hook? #642

Open SachaG opened 8 years ago

SachaG commented 8 years ago

Is there any way to run code after all necessary components have been server-side rendered, but before any data is initially sent to the server?

As a hypothetical example, let's say I want to count how many React components are being rendered in my app by incrementing a global variable each time, and then send that variable to the client using inject-initial. How would that be possible?