Apollo out-of-the-box does a render pass that can comprehend possible queries.
Upgrading to Relay Modern or Apollo
Scott Taylor
70315

It might be worth noting that, to deal with nested queries, the render pass repeatedly re-renders the app.

I’ve used this approach for SSR in the past. It’s neat and works pretty well, but at least on earlier versions of React, was potentially expensive, given the need to repeatedly re-render.

The Apollo implementation is a bit cleverer in that it doesn’t try to serialize out markup, though.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.