kickstart-meteor-react-flowrouter-SSR-codeSplit
kickstart-meteor-react-flowrouter-SSR-codeSplit copied to clipboard
SSR not working with 1.4.2
Hi, thank you for this kickstart project till version 1.3.4.4 of Meteor this works very well. I recently tried the version 1.4.2 and there I have problems getting SSR to work in this project.
Do you have an idea what could be the issue here?
I do have every package up-to-date for version 1.3.4.4 but when upgrading the result is (with deactivating javascript) that there is only a white page showing up in the browser.
Thank you!
Seems that FlowRouter is the issue here: https://forums.meteor.com/t/after-update-to-1-4-2-flowrouterssr-not-working/30777
Thanks. I've been using my own fork of flow router ssr recently, since the repo is not maintained anymore. Hopefully I'll be able to find the exact issue.
There is an issue now in the official repo of meteor about this bug: https://github.com/meteor/meteor/issues/7992
thanks for looking into it. So is the conclusion that meteorhacks/inject-data has a bug and impacts flow-router-ssr through its direct dependencies on inject-data, and indirect dependency through meteorhacks:fast-render?
... kadira has not been updating those repo in a long while. It's really annoying if we've to fork everything!
From the latest post in the linked issue it seems to me that the rewrite of the inject-data package was just a workaround at that time.
According to the aforementioned post the main problem is within the picker and webapp packages.
I have investigated a bit further and in the react apollo app they took some parts of the SSR functionality from FlowrouterSSR. And they are using Meteor 1.4.2.
But I have not actually tested yet if their SSR solution works.
You can see the usage here: https://github.com/apollostack/react-apollo/blob/master/examples/meteor/server/index.js
So I thought maybe the algorithm in the hook from WebApp.connectHandlers.use in this file could be somehow (besides the ApolloClient library) applied to your version of the Flowrouter implementation and then it would work again.