@apollo/client 3.7.0-beta.4 → 3.7.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apollo-client.cjs +3 -3
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +1 -1
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +1 -1
- package/cache/inmemory/policies.js +1 -1
- package/cache/inmemory/policies.js.map +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/invariantErrorCodes.js +1 -1
- package/package.json +1 -1
- package/react/hooks/hooks.cjs +1 -1
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +1 -1
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useQuery.js.map +1 -1
- package/version.js +1 -1
package/apollo-client.cjs
CHANGED
|
@@ -1298,7 +1298,7 @@ var concat = ApolloLink.concat;
|
|
|
1298
1298
|
|
|
1299
1299
|
var execute = ApolloLink.execute;
|
|
1300
1300
|
|
|
1301
|
-
var version = '3.7.0-beta.
|
|
1301
|
+
var version = '3.7.0-beta.5';
|
|
1302
1302
|
|
|
1303
1303
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1304
1304
|
function parseAndCheckHttpResponse(operations) {
|
|
@@ -3127,7 +3127,7 @@ function makeFieldFunctionOptions(policies, objectOrReference, fieldSpec, contex
|
|
|
3127
3127
|
cache: policies.cache,
|
|
3128
3128
|
canRead: canRead,
|
|
3129
3129
|
readField: function () {
|
|
3130
|
-
return policies.readField(normalizeReadFieldOptions(arguments, objectOrReference,
|
|
3130
|
+
return policies.readField(normalizeReadFieldOptions(arguments, objectOrReference, variables), context);
|
|
3131
3131
|
},
|
|
3132
3132
|
mergeObjects: makeMergeObjectsFunction(context.store),
|
|
3133
3133
|
};
|
|
@@ -6431,7 +6431,7 @@ var InternalState = (function () {
|
|
|
6431
6431
|
if (queryResult)
|
|
6432
6432
|
return queryResult;
|
|
6433
6433
|
var data = result.data; result.partial; var resultWithoutPartial = tslib.__rest(result, ["data", "partial"]);
|
|
6434
|
-
this.toQueryResultCache.set(result, queryResult = tslib.__assign(tslib.__assign(tslib.__assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, observable: this.observable, variables: this.observable.variables, called:
|
|
6434
|
+
this.toQueryResultCache.set(result, queryResult = tslib.__assign(tslib.__assign(tslib.__assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, observable: this.observable, variables: this.observable.variables, called: !this.queryHookOptions.skip, previousData: this.previousData }));
|
|
6435
6435
|
if (!queryResult.error && isNonEmptyArray(result.errors)) {
|
|
6436
6436
|
queryResult.error = new ApolloError({ graphQLErrors: result.errors });
|
|
6437
6437
|
}
|