apollo-client
Advanced tools
Comparing version 0.4.18 to 0.4.19
@@ -183,3 +183,10 @@ "use strict"; | ||
ApolloClient.prototype.setStore = function (store) { | ||
var reduxRootSelector = (this.reduxRootSelector) ? this.reduxRootSelector : defaultReduxRootSelector; | ||
var reduxRootSelector; | ||
if (this.reduxRootSelector) { | ||
reduxRootSelector = this.reduxRootSelector; | ||
} | ||
else { | ||
reduxRootSelector = defaultReduxRootSelector; | ||
this.reduxRootKey = DEFAULT_REDUX_ROOT_KEY; | ||
} | ||
if (isUndefined(reduxRootSelector(store.getState()))) { | ||
@@ -186,0 +193,0 @@ throw new Error('Existing store does not use apolloReducer. Please make sure the store ' + |
{ | ||
"name": "apollo-client", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
292243
4284