Skip to content

Commit 2745e3d

Browse files
author
Guillaume Chau
committed
Apollo 2 support
1 parent 60786ba commit 2745e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apollo-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class ApolloProvider {
147147
const states = {}
148148
for (const key in this.clients) {
149149
const client = this.clients[key]
150-
const state = { [client.reduxRootKey || 'apollo']: client.getInitialState() }
150+
const state = client.cache.extract()
151151
states[`${finalOptions.exportNamespace}${key}`] = state
152152
}
153153
return states

0 commit comments

Comments
 (0)