@apollo/client 4.1.4 → 4.1.6

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.
@@ -411,7 +411,7 @@ class QueryManager {
411
411
  const oq = new ObservableQuery_js_1.ObservableQuery({
412
412
  queryManager: this,
413
413
  options: {
414
- ...options,
414
+ ...(0, internal_1.mergeOptions)(this.defaultOptions.watchQuery, options),
415
415
  fetchPolicy: "network-only",
416
416
  },
417
417
  });
@@ -715,8 +715,7 @@ class QueryManager {
715
715
  // or setVariables.
716
716
  networkStatus = networkStatus_js_1.NetworkStatus.loading, query = options.query, fetchQueryOperator = (x) => x, onCacheHit = () => { }, observableQuery, exposeExtensions, }) {
717
717
  const variables = this.getVariables(query, options.variables);
718
- const defaults = this.defaultOptions.watchQuery;
719
- let { fetchPolicy = (defaults && defaults.fetchPolicy) || "cache-first", errorPolicy = (defaults && defaults.errorPolicy) || "none", returnPartialData = false, notifyOnNetworkStatusChange = true, context = {}, } = options;
718
+ let { fetchPolicy = "cache-first", errorPolicy = "none", returnPartialData = false, notifyOnNetworkStatusChange = true, context = {}, } = options;
720
719
  if (this.prioritizeCacheValues &&
721
720
  (fetchPolicy === "network-only" || fetchPolicy === "cache-and-network")) {
722
721
  fetchPolicy = "cache-first";