Simpler Apollo Client cache extraction for SSR.
This commit is contained in:
parent
d913f91f1e
commit
09a66981ed
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user