# SSR

window.__APOLLO_STATE__ = JSON.stringify(client.cache.extract())

const client = new ApolloClient({
  cache: new InMemoryCache().restore(window.__APOLLO_STATE__),
  link,
})

# ReactDOM.renderToString(App)

# ApolloReact.renderToStringWithData(App)

Last Updated: 2/26/2021, 3:58:27 PM