@apollo/client 4.2.8 → 4.2.9
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 +8 -0
- package/README.md +3 -7
- package/__cjs/cache/inmemory/readFromStore.cjs +1 -4
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.cjs +42 -4
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/QueryManager.cjs +12 -0
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/types.d.cts +2 -0
- package/__cjs/version.cjs +1 -1
- package/cache/inmemory/readFromStore.js +2 -5
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/core/ObservableQuery.js +42 -4
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryManager.js +12 -0
- package/core/QueryManager.js.map +1 -1
- package/core/types.d.ts +2 -0
- package/core/types.js.map +1 -1
- package/package.json +1 -1
- package/version.js +1 -1
|
@@ -1000,6 +1000,10 @@ class QueryManager {
|
|
|
1000
1000
|
return (0, rxjs_2.of)({
|
|
1001
1001
|
kind: "N",
|
|
1002
1002
|
value: toResult(data),
|
|
1003
|
+
// Always attach the variables used for this fetch so @export
|
|
1004
|
+
// resolution can update ObservableQuery.options.variables and
|
|
1005
|
+
// resubscribe the cache watch under the correct variable set.
|
|
1006
|
+
resolvedVariables: variables,
|
|
1003
1007
|
source: "cache",
|
|
1004
1008
|
});
|
|
1005
1009
|
};
|
|
@@ -1029,6 +1033,10 @@ class QueryManager {
|
|
|
1029
1033
|
}).then((resolved) => ({
|
|
1030
1034
|
kind: "N",
|
|
1031
1035
|
value: toResult(resolved.data || void 0),
|
|
1036
|
+
// Always attach the variables used for this fetch so @export
|
|
1037
|
+
// resolution can update ObservableQuery.options.variables and
|
|
1038
|
+
// resubscribe the cache watch under the correct variable set.
|
|
1039
|
+
resolvedVariables: variables,
|
|
1032
1040
|
source: "cache",
|
|
1033
1041
|
})));
|
|
1034
1042
|
}
|
|
@@ -1056,6 +1064,10 @@ class QueryManager {
|
|
|
1056
1064
|
exposeExtensions,
|
|
1057
1065
|
}).pipe(validateDidEmitValue(), (0, rxjs_2.materialize)(), (0, rxjs_2.map)((result) => ({
|
|
1058
1066
|
...result,
|
|
1067
|
+
// Always attach the variables used for this fetch so @export
|
|
1068
|
+
// resolution can update ObservableQuery.options.variables and
|
|
1069
|
+
// resubscribe the cache watch under the correct variable set.
|
|
1070
|
+
resolvedVariables: variables,
|
|
1059
1071
|
source: "network",
|
|
1060
1072
|
})));
|
|
1061
1073
|
switch (fetchPolicy) {
|