apollo-client
Advanced tools
Comparing version 2.4.3-local-state-alpha.3 to 2.4.3-local-state-alpha.4
@@ -780,10 +780,11 @@ var __assign = (this && this.__assign) || function () { | ||
var existingInitializer = _this.localStateInitializers[fieldName]; | ||
if (!existingInitializer || | ||
existingInitializer.toString() !== newInitializer.toString()) { | ||
newInitializers[fieldName] = newInitializer; | ||
var result = newInitializer(cache); | ||
if (result) { | ||
cache.writeData({ data: (_a = {}, _a[fieldName] = result, _a) }); | ||
} | ||
if (existingInitializer && | ||
existingInitializer.toString() === newInitializer.toString()) { | ||
return; | ||
} | ||
newInitializers[fieldName] = newInitializer; | ||
var result = newInitializer(cache); | ||
if (result) { | ||
cache.writeData({ data: (_a = {}, _a[fieldName] = result, _a) }); | ||
} | ||
}); | ||
@@ -790,0 +791,0 @@ this.localStateInitializers = __assign({}, this.localStateInitializers, newInitializers); |
{ | ||
"name": "apollo-client", | ||
"version": "2.4.3-local-state-alpha.3", | ||
"version": "2.4.3-local-state-alpha.4", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -28,7 +28,7 @@ "main": "bundle.umd.js", | ||
"@types/zen-observable": "^0.8.0", | ||
"apollo-cache": "1.1.18-local-state-alpha.3", | ||
"apollo-cache": "1.1.18-local-state-alpha.4", | ||
"apollo-link": "^1.0.0", | ||
"apollo-link-dedup": "^1.0.0", | ||
"apollo-utilities": "1.0.22-local-state-alpha.3", | ||
"graphql-anywhere": "4.1.20-local-state-alpha.3", | ||
"apollo-utilities": "1.0.22-local-state-alpha.4", | ||
"graphql-anywhere": "4.1.20-local-state-alpha.4", | ||
"symbol-observable": "^1.0.2", | ||
@@ -35,0 +35,0 @@ "zen-observable": "^0.8.0" |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.4.3-local-state-alpha.3"; | ||
export declare const version = "2.4.3-local-state-alpha.4"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,1 +0,1 @@ | ||
exports.version = "2.4.3-local-state-alpha.3" | ||
exports.version = "2.4.3-local-state-alpha.4" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
500535
4841
+ Addedapollo-cache@1.1.18-local-state-alpha.4(transitive)
+ Addedapollo-utilities@1.0.22-local-state-alpha.4(transitive)
+ Addedgraphql-anywhere@4.1.20-local-state-alpha.4(transitive)
- Removedapollo-cache@1.1.18-local-state-alpha.3(transitive)
- Removedapollo-utilities@1.0.22-local-state-alpha.3(transitive)
- Removedgraphql-anywhere@4.1.20-local-state-alpha.3(transitive)