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
|
// Set Apollo Client initial state so the client can adopt data fetched
|
||||||
// on the server.
|
// on the server.
|
||||||
initialProps.initialState = apolloClient.queryManager.dataStore
|
initialProps.initialState = apolloClient.cache.extract()
|
||||||
.getCache()
|
|
||||||
.extract()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the final page component inital props
|
// Return the final page component inital props
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user