When ReactLayout.render is called asynchronousely, the ssr context is not accessible anymore. This is a double PR (I'ma making the same for DocHead). It just add the context as an optionnal parametter of the render and _addToHead functions.
So in the action hook of the route constructor in flow router, you can now do this :
This PR concerns this issue on FlowRouter : https://github.com/kadirahq/flow-router/issues/205
When ReactLayout.render is called asynchronousely, the ssr context is not accessible anymore. This is a double PR (I'ma making the same for DocHead). It just add the context as an optionnal parametter of the render and _addToHead functions.
So in the action hook of the route constructor in flow router, you can now do this :
There's probably a smarter way, but this one works.