Re:Relay Technical Preview
by sergiotapia on Tuesday August 11, 2015 @05:07PM
(#10044396)
Meteor already does this. In your template (Blaze) you can wait for your subscriptions to be ready and in the meantime render a loading icon or something else. Check it out!
[ Parent
| on HN ]
In this case, I think the more accurate example would be Meteor + React [1]. You can still show the "wait for data to be ready" state as you described. (For those interested, follow the linked tutorial.)
The Kadira team have even gotten Server-Side Rendering working with React [2][3] while no-one has yet for Blaze because the Blaze templates aren't currently available on the server due to how the bundler works. I'm sure MDG will make them available soon and then we'll be able to have SSR with both React and Blaze.
1. http://react-in-meteor.readthedocs.org/en/latest/
2. https://github.com/kadirahq/flow-router/tree/ssr
3. https://kadira.io/blog/meteor/meteor-ssr-support-using-flow-...