A fully working beta of communitypackages:react-router-ssr which is compatible with Meteor 3 has been published. This brings full server rendering in react to Meteor 3 with full data hydration and the ability to to server render components containing suspense boundaries.
If you’re currently using this package, please upgrade and give it a test to help find any issues.
There’s still much to do such as React 19 compatibility. I’ll hold off on that till the next version though. If anyone wants to jump in and work on these kinds of updates, please do.
Thanks @minhna. Hoping to have a stable release in the next week or so. I’ll be putting it through its paces by upgrading a client app that’s been waiting to upgrade to Meteor 3 and has been blocked by the compatibility of this package.
I just tested this and it works really good using react 18. However using the latest react-meteor-data@3.0.5-beta.0 it doesn’t load the data. Can you have a look what’s the problem?
The community has made many improvements in react-meteor-data@3.0.5-beta.0, all backed by tests. Still, some scenarios might not behave as expected. Have you checked if it works with the previous stable version?
If it does, we should isolate your use case in the beta version so we can reproduce it in conjuntion with react-router-ssr in a test and include a fix with other updates in react-meteor-data. Could you provide more reproduction steps for them to fix? Or maybe the issue is on react-router-ssr side, we should verify.
It’s working with the current react-meteor-data stable version 3.0.3.
It can be replicated with copleykj’s react-router-ssr-demo. With the current stable react-meteor-data it loads all the links on the main page, with the new beta there are no links showing.