@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.
@@ -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) {