@apollo/client 3.8.0-alpha.6 → 3.8.0-alpha.7

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 CHANGED
@@ -1383,7 +1383,7 @@ var concat = ApolloLink.concat;
1383
1383
 
1384
1384
  var execute = ApolloLink.execute;
1385
1385
 
1386
- var version = '3.8.0-alpha.6';
1386
+ var version = '3.8.0-alpha.7';
1387
1387
 
1388
1388
  function asyncIterator(source) {
1389
1389
  var _a;
@@ -6982,11 +6982,11 @@ var EAGER_METHODS = [
6982
6982
  'subscribeToMore',
6983
6983
  ];
6984
6984
  function useLazyQuery(query, options) {
6985
- var _a;
6985
+ var _a, _b;
6986
6986
  var abortControllersRef = React.useRef(new Set());
6987
6987
  var execOptionsRef = React.useRef();
6988
6988
  var merged = execOptionsRef.current ? mergeOptions(options, execOptionsRef.current) : options;
6989
- var internalState = useInternalState(useApolloClient(options && options.client), (_a = merged === null || merged === void 0 ? void 0 : merged.query) !== null && _a !== void 0 ? _a : query);
6989
+ var internalState = useInternalState(useApolloClient(options && options.client), (_b = (_a = execOptionsRef.current) === null || _a === void 0 ? void 0 : _a.query) !== null && _b !== void 0 ? _b : query);
6990
6990
  var useQueryResult = internalState.useQuery(tslib.__assign(tslib.__assign({}, merged), { skip: !execOptionsRef.current }));
6991
6991
  var initialFetchPolicy = useQueryResult.observable.options.initialFetchPolicy ||
6992
6992
  internalState.getDefaultFetchPolicy();