4 ms·
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.
by sergiotapia 11y ago
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!
- alanning 11y agoIn 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/ http://react-in-meteor.readthedocs.org/en/latest/ 2. https://github.com/kadirahq/flow-router/tree/ssr https://github.com/kadirahq/flow-router/tree/ssr 3. https://kadira.io/blog/meteor/meteor-ssr-support-using-flow-router-and-react https://kadira.io/blog/meteor/meteor-ssr-support-using-flow-...