Simpler Apollo Client cache extraction for SSR.

This commit is contained in:
Jayden Seric 2017-11-08 15:19:50 +11:00
parent d913f91f1e
commit 09a66981ed

View File

@ -90,9 +90,7 @@ export default ComposedComponent =>
// Set Apollo Client initial state so the client can adopt data fetched
// on the server.
initialProps.initialState = apolloClient.queryManager.dataStore
.getCache()
.extract()
initialProps.initialState = apolloClient.cache.extract()
}
// Return the final page component inital props