Skip to content

Commit d2089e4

Browse files
author
Guillaume Chau
committed
(SSR) Fix an issue with exportStates default options
1 parent f391a6a commit d2089e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/apollo-provider.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ export class ApolloProvider {
154154
globalName: '__APOLLO_STATE__',
155155
attachTo: 'window',
156156
}, options)
157-
const states = this.getStates({
158-
exportNamespace: finalOptions.exportNamespace,
159-
})
157+
const states = this.getStates(finalOptions)
160158
const js = `${finalOptions.attachTo}.${finalOptions.globalName} = ${JSON.stringify(states)};`
161159
return js
162160
}

0 commit comments

Comments
 (0)