react-apollo-hooks icon indicating copy to clipboard operation
react-apollo-hooks copied to clipboard

How does Apollo cache get sent to the client with SSR?

Open jedwards1211 opened this issue 5 years ago • 2 comments

I'm confused how the SSR example would work without using apolloClient.extract() to send the cache state to the client. And because getMarkupFromTree exerts more control than getDataFromTree, it seems impossible to use apolloClient.extract() with this library; am I right?

jedwards1211 avatar May 31 '19 18:05 jedwards1211

It's possible and works very well

cloudever avatar Jun 04 '19 03:06 cloudever

it's not possible to use apolloClient.extract() together with getDataFromTree though is it? At least without doing a 3rd rendering pass?

jedwards1211 avatar Jun 04 '19 04:06 jedwards1211