@tanstack/vue-query 4.13.2 → 4.13.4

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.
@@ -2,7 +2,7 @@ import type { QueryKey, QueryObserverOptions, InfiniteQueryObserverOptions } fro
2
2
  import type { Ref, UnwrapRef } from 'vue-demi';
3
3
  import type { QueryClient } from './queryClient';
4
4
  export declare type MaybeRef<T> = Ref<T> | T;
5
- export declare type MaybeRefDeep<T> = MaybeRef<T extends object ? {
5
+ export declare type MaybeRefDeep<T> = MaybeRef<T extends Function ? T : T extends object ? {
6
6
  [Property in keyof T]: MaybeRefDeep<T[Property]>;
7
7
  } : T>;
8
8
  export declare type WithQueryClientKey<T> = T & {
@@ -2469,7 +2469,6 @@
2469
2469
  if (options.select && typeof placeholderData !== 'undefined') {
2470
2470
  try {
2471
2471
  placeholderData = options.select(placeholderData);
2472
- placeholderData = replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options);
2473
2472
  this.selectError = null;
2474
2473
  } catch (selectError) {
2475
2474
  {
@@ -2483,7 +2482,7 @@
2483
2482
 
2484
2483
  if (typeof placeholderData !== 'undefined') {
2485
2484
  status = 'success';
2486
- data = placeholderData;
2485
+ data = replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options);
2487
2486
  isPlaceholderData = true;
2488
2487
  }
2489
2488
  }