@apollo/client 3.11.6 → 3.11.8
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/CHANGELOG.md +12 -0
- package/apollo-client.cjs +8 -5
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +4 -1
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +4 -1
- package/cache/core/cache.js +10 -1
- package/cache/core/cache.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/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/link/http/http.cjs +3 -3
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +3 -3
- package/link/http/selectHttpOptionsAndBody.js +3 -3
- package/link/http/selectHttpOptionsAndBody.js.map +1 -1
- package/package.json +1 -1
- package/react/internal/internal.cjs +1 -1
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +1 -1
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/subscriptions/relay/relay.cjs.map +1 -1
- package/utilities/subscriptions/urql/urql.cjs.map +1 -1
- package/version.js +1 -1
package/cache/cache.cjs
CHANGED
|
@@ -170,7 +170,10 @@ var ApolloCache = (function () {
|
|
|
170
170
|
var _this = this;
|
|
171
171
|
var fragment = options.fragment, fragmentName = options.fragmentName, from = options.from, _a = options.optimistic, optimistic = _a === void 0 ? true : _a, otherOptions = tslib.__rest(options, ["fragment", "fragmentName", "from", "optimistic"]);
|
|
172
172
|
var query = this.getFragmentDoc(fragment, fragmentName);
|
|
173
|
-
var diffOptions = tslib.__assign(tslib.__assign({}, otherOptions), { returnPartialData: true, id:
|
|
173
|
+
var diffOptions = tslib.__assign(tslib.__assign({}, otherOptions), { returnPartialData: true, id:
|
|
174
|
+
typeof from === "undefined" || typeof from === "string" ?
|
|
175
|
+
from
|
|
176
|
+
: this.identify(from), query: query, optimistic: optimistic });
|
|
174
177
|
var latestDiff;
|
|
175
178
|
return new utilities.Observable(function (observer) {
|
|
176
179
|
return _this.watch(tslib.__assign(tslib.__assign({}, diffOptions), { immediate: true, callback: function (diff) {
|