@tanstack/vue-query 5.81.5 → 5.82.0
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/build/legacy/devtools/devtools.d.cts +1 -1
- package/build/legacy/devtools/devtools.d.ts +1 -1
- package/build/legacy/index.d.cts +1 -1
- package/build/legacy/index.d.ts +1 -1
- package/build/legacy/infiniteQueryOptions.d.cts +1 -1
- package/build/legacy/infiniteQueryOptions.d.ts +1 -1
- package/build/legacy/{queryClient-U1SOFvY2.d.ts → queryClient-CAHOJcvF.d.ts} +2 -2
- package/build/legacy/{queryClient-DKGk2Fsp.d.cts → queryClient-CEu47BH9.d.cts} +2 -2
- package/build/legacy/queryClient.d.cts +1 -1
- package/build/legacy/queryClient.d.ts +1 -1
- package/build/legacy/queryOptions.d.cts +1 -1
- package/build/legacy/queryOptions.d.ts +1 -1
- package/build/legacy/useBaseQuery.d.cts +1 -1
- package/build/legacy/useBaseQuery.d.ts +1 -1
- package/build/legacy/useInfiniteQuery.d.cts +1 -1
- package/build/legacy/useInfiniteQuery.d.ts +1 -1
- package/build/legacy/useIsFetching.d.cts +1 -1
- package/build/legacy/useIsFetching.d.ts +1 -1
- package/build/legacy/useMutation.d.cts +1 -1
- package/build/legacy/useMutation.d.ts +1 -1
- package/build/legacy/useMutationState.d.cts +1 -1
- package/build/legacy/useMutationState.d.ts +1 -1
- package/build/legacy/useQueries.d.cts +1 -1
- package/build/legacy/useQueries.d.ts +1 -1
- package/build/legacy/useQuery.cjs.map +1 -1
- package/build/legacy/useQuery.d.cts +1 -1
- package/build/legacy/useQuery.d.ts +1 -1
- package/build/legacy/useQuery.js.map +1 -1
- package/build/legacy/useQueryClient.d.cts +1 -1
- package/build/legacy/useQueryClient.d.ts +1 -1
- package/build/legacy/vueQueryPlugin.d.cts +1 -1
- package/build/legacy/vueQueryPlugin.d.ts +1 -1
- package/build/modern/devtools/devtools.d.cts +1 -1
- package/build/modern/devtools/devtools.d.ts +1 -1
- package/build/modern/index.d.cts +1 -1
- package/build/modern/index.d.ts +1 -1
- package/build/modern/infiniteQueryOptions.d.cts +1 -1
- package/build/modern/infiniteQueryOptions.d.ts +1 -1
- package/build/modern/{queryClient-U1SOFvY2.d.ts → queryClient-CAHOJcvF.d.ts} +2 -2
- package/build/modern/{queryClient-DKGk2Fsp.d.cts → queryClient-CEu47BH9.d.cts} +2 -2
- package/build/modern/queryClient.d.cts +1 -1
- package/build/modern/queryClient.d.ts +1 -1
- package/build/modern/queryOptions.d.cts +1 -1
- package/build/modern/queryOptions.d.ts +1 -1
- package/build/modern/useBaseQuery.d.cts +1 -1
- package/build/modern/useBaseQuery.d.ts +1 -1
- package/build/modern/useInfiniteQuery.d.cts +1 -1
- package/build/modern/useInfiniteQuery.d.ts +1 -1
- package/build/modern/useIsFetching.d.cts +1 -1
- package/build/modern/useIsFetching.d.ts +1 -1
- package/build/modern/useMutation.d.cts +1 -1
- package/build/modern/useMutation.d.ts +1 -1
- package/build/modern/useMutationState.d.cts +1 -1
- package/build/modern/useMutationState.d.ts +1 -1
- package/build/modern/useQueries.d.cts +1 -1
- package/build/modern/useQueries.d.ts +1 -1
- package/build/modern/useQuery.cjs.map +1 -1
- package/build/modern/useQuery.d.cts +1 -1
- package/build/modern/useQuery.d.ts +1 -1
- package/build/modern/useQuery.js.map +1 -1
- package/build/modern/useQueryClient.d.cts +1 -1
- package/build/modern/useQueryClient.d.ts +1 -1
- package/build/modern/vueQueryPlugin.d.cts +1 -1
- package/build/modern/vueQueryPlugin.d.ts +1 -1
- package/package.json +2 -2
- package/src/useQuery.ts +9 -9
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from '@tanstack/query-core';
|
|
2
2
|
export { useQueryClient } from './useQueryClient.cjs';
|
|
3
3
|
export { VueQueryPlugin, VueQueryPluginOptions } from './vueQueryPlugin.cjs';
|
|
4
|
-
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-
|
|
4
|
+
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
export { QueryCache } from './queryCache.cjs';
|
|
6
6
|
export { queryOptions } from './queryOptions.cjs';
|
|
7
7
|
export { MutationCache } from './mutationCache.cjs';
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from '@tanstack/query-core';
|
|
2
2
|
export { useQueryClient } from './useQueryClient.js';
|
|
3
3
|
export { VueQueryPlugin, VueQueryPluginOptions } from './vueQueryPlugin.js';
|
|
4
|
-
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-
|
|
4
|
+
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
export { QueryCache } from './queryCache.js';
|
|
6
6
|
export { queryOptions } from './queryOptions.js';
|
|
7
7
|
export { MutationCache } from './mutationCache.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-
|
|
2
|
+
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-
|
|
2
|
+
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
1
|
+
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, Enabled, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
2
2
|
import { Ref } from 'vue-demi';
|
|
3
3
|
import { MaybeRef, MaybeRefOrGetter, DeepUnwrapRef, MaybeRefDeep, ShallowOption, QueryClientConfig, NoUnknown } from './types.js';
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ type UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey e
|
|
|
32
32
|
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey, TPageParam>(Observer: typeof QueryObserver, options: UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseBaseQueryReturnType<TData, TError>;
|
|
33
33
|
|
|
34
34
|
type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = MaybeRef<{
|
|
35
|
-
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<
|
|
35
|
+
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<boolean | undefined> | (() => Enabled<TQueryFnData, TError, TQueryData, DeepUnwrapRef<TQueryKey>>) : MaybeRefDeep<QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, DeepUnwrapRef<TQueryKey>>[Property]>;
|
|
36
36
|
} & ShallowOption>;
|
|
37
37
|
type UndefinedInitialQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {
|
|
38
38
|
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
1
|
+
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, Enabled, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
2
2
|
import { Ref } from 'vue-demi';
|
|
3
3
|
import { MaybeRef, MaybeRefOrGetter, DeepUnwrapRef, MaybeRefDeep, ShallowOption, QueryClientConfig, NoUnknown } from './types.cjs';
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ type UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey e
|
|
|
32
32
|
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey, TPageParam>(Observer: typeof QueryObserver, options: UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseBaseQueryReturnType<TData, TError>;
|
|
33
33
|
|
|
34
34
|
type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = MaybeRef<{
|
|
35
|
-
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<
|
|
35
|
+
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<boolean | undefined> | (() => Enabled<TQueryFnData, TError, TQueryData, DeepUnwrapRef<TQueryKey>>) : MaybeRefDeep<QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, DeepUnwrapRef<TQueryKey>>[Property]>;
|
|
36
36
|
} & ShallowOption>;
|
|
37
37
|
type UndefinedInitialQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {
|
|
38
38
|
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-
|
|
2
|
+
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.cjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-
|
|
2
|
+
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-
|
|
1
|
+
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-CEu47BH9.cjs';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-
|
|
1
|
+
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-CAHOJcvF.js';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryFilters as QueryFilters$1 } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep } from './types.cjs';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
|
|
6
6
|
type QueryFilters = MaybeRefDeep<QueryFilters$1>;
|
|
7
7
|
declare function useIsFetching(fetchingFilters?: MaybeRefDeep<QueryFilters$1>, queryClient?: QueryClient): Ref<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryFilters as QueryFilters$1 } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep } from './types.js';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
|
|
6
6
|
type QueryFilters = MaybeRefDeep<QueryFilters$1>;
|
|
7
7
|
declare function useIsFetching(fetchingFilters?: MaybeRefDeep<QueryFilters$1>, queryClient?: QueryClient): Ref<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToRefs } from 'vue-demi';
|
|
2
2
|
import { DefaultError, MutationObserverOptions, DistributiveOmit, MutationObserverResult, MutateFunction } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep, ShallowOption } from './types.cjs';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
|
|
6
6
|
type MutationResult<TData, TError, TVariables, TContext> = DistributiveOmit<MutationObserverResult<TData, TError, TVariables, TContext>, 'mutate' | 'reset'>;
|
|
7
7
|
type UseMutationOptionsBase<TData, TError, TVariables, TContext> = MutationObserverOptions<TData, TError, TVariables, TContext> & ShallowOption;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToRefs } from 'vue-demi';
|
|
2
2
|
import { DefaultError, MutationObserverOptions, DistributiveOmit, MutationObserverResult, MutateFunction } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep, ShallowOption } from './types.js';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
|
|
6
6
|
type MutationResult<TData, TError, TVariables, TContext> = DistributiveOmit<MutationObserverResult<TData, TError, TVariables, TContext>, 'mutate' | 'reset'>;
|
|
7
7
|
type UseMutationOptionsBase<TData, TError, TVariables, TContext> = MutationObserverOptions<TData, TError, TVariables, TContext> & ShallowOption;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core';
|
|
3
|
-
import { Q as QueryClient } from './queryClient-
|
|
3
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
4
4
|
import { MaybeRefDeep } from './types.cjs';
|
|
5
5
|
|
|
6
6
|
type MutationFilters = MaybeRefDeep<MutationFilters$1>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core';
|
|
3
|
-
import { Q as QueryClient } from './queryClient-
|
|
3
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
4
4
|
import { MaybeRefDeep } from './types.js';
|
|
5
5
|
|
|
6
6
|
type MutationFilters = MaybeRefDeep<MutationFilters$1>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefinedQueryObserverResult, DefaultError, QueryFunction, ThrowOnError, QueryKey } from '@tanstack/query-core';
|
|
3
|
-
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-
|
|
3
|
+
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
4
4
|
import { ShallowOption, MaybeRefDeep, DeepUnwrapRef } from './types.cjs';
|
|
5
5
|
|
|
6
6
|
type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefinedQueryObserverResult, DefaultError, QueryFunction, ThrowOnError, QueryKey } from '@tanstack/query-core';
|
|
3
|
-
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-
|
|
3
|
+
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
4
4
|
import { ShallowOption, MaybeRefDeep, DeepUnwrapRef } from './types.js';
|
|
5
5
|
|
|
6
6
|
type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n
|
|
1
|
+
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n Enabled,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n ?\n | MaybeRefOrGetter<boolean | undefined>\n | (() => Enabled<\n TQueryFnData,\n TError,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >)\n : MaybeRefDeep<\n QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >[Property]\n >\n } & ShallowOption\n>\n\nexport type UndefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type DefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n}\n\nexport type UseQueryReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError\n>\n\nexport type UseQueryDefinedReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError,\n DefinedQueryObserverResult<TData, TError>\n>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryDefinedReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n):\n | UseQueryReturnType<TData, TError>\n | UseQueryDefinedReturnType<TData, TError> {\n return useBaseQuery(QueryObserver, options, queryClient)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA8B;AAC9B,0BAA6B;AA6HtB,SAAS,SAMd,SAOA,aAG2C;AAC3C,aAAO,kCAAa,iCAAe,SAAS,WAAW;AACzD;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-
|
|
2
|
+
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-
|
|
2
|
+
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n
|
|
1
|
+
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n Enabled,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n ?\n | MaybeRefOrGetter<boolean | undefined>\n | (() => Enabled<\n TQueryFnData,\n TError,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >)\n : MaybeRefDeep<\n QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >[Property]\n >\n } & ShallowOption\n>\n\nexport type UndefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type DefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n}\n\nexport type UseQueryReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError\n>\n\nexport type UseQueryDefinedReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError,\n DefinedQueryObserverResult<TData, TError>\n>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryDefinedReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n):\n | UseQueryReturnType<TData, TError>\n | UseQueryDefinedReturnType<TData, TError> {\n return useBaseQuery(QueryObserver, options, queryClient)\n}\n"],"mappings":";AAAA,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AA6HtB,SAAS,SAMd,SAOA,aAG2C;AAC3C,SAAO,aAAa,eAAe,SAAS,WAAW;AACzD;","names":[]}
|
package/build/modern/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from '@tanstack/query-core';
|
|
2
2
|
export { useQueryClient } from './useQueryClient.cjs';
|
|
3
3
|
export { VueQueryPlugin, VueQueryPluginOptions } from './vueQueryPlugin.cjs';
|
|
4
|
-
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-
|
|
4
|
+
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
export { QueryCache } from './queryCache.cjs';
|
|
6
6
|
export { queryOptions } from './queryOptions.cjs';
|
|
7
7
|
export { MutationCache } from './mutationCache.cjs';
|
package/build/modern/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from '@tanstack/query-core';
|
|
2
2
|
export { useQueryClient } from './useQueryClient.js';
|
|
3
3
|
export { VueQueryPlugin, VueQueryPluginOptions } from './vueQueryPlugin.js';
|
|
4
|
-
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-
|
|
4
|
+
export { D as DefinedInitialDataInfiniteOptions, f as DefinedInitialQueryOptions, Q as QueryClient, U as UndefinedInitialDataInfiniteOptions, e as UndefinedInitialQueryOptions, g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, i as infiniteQueryOptions, a as useInfiniteQuery, u as useQuery } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
export { QueryCache } from './queryCache.js';
|
|
6
6
|
export { queryOptions } from './queryOptions.js';
|
|
7
7
|
export { MutationCache } from './mutationCache.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-
|
|
2
|
+
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-
|
|
2
|
+
export { D as DefinedInitialDataInfiniteOptions, U as UndefinedInitialDataInfiniteOptions, i as infiniteQueryOptions } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
1
|
+
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, Enabled, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
2
2
|
import { Ref } from 'vue-demi';
|
|
3
3
|
import { MaybeRef, MaybeRefOrGetter, DeepUnwrapRef, MaybeRefDeep, ShallowOption, QueryClientConfig, NoUnknown } from './types.js';
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ type UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey e
|
|
|
32
32
|
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey, TPageParam>(Observer: typeof QueryObserver, options: UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseBaseQueryReturnType<TData, TError>;
|
|
33
33
|
|
|
34
34
|
type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = MaybeRef<{
|
|
35
|
-
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<
|
|
35
|
+
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<boolean | undefined> | (() => Enabled<TQueryFnData, TError, TQueryData, DeepUnwrapRef<TQueryKey>>) : MaybeRefDeep<QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, DeepUnwrapRef<TQueryKey>>[Property]>;
|
|
36
36
|
} & ShallowOption>;
|
|
37
37
|
type UndefinedInitialQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {
|
|
38
38
|
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
1
|
+
import { DefaultError, InfiniteData, QueryKey, DataTag, NonUndefinedGuard, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, QueryObserverResult, QueryObserver, QueryObserverOptions, Enabled, InitialDataFunction, DefinedQueryObserverResult, QueryClient as QueryClient$1, QueryFilters, MutationFilters, InferDataFromTag, EnsureQueryDataOptions, Updater, NoInfer, SetDataOptions, QueryState, InferErrorFromTag, ResetOptions, CancelOptions, InvalidateQueryFilters, InvalidateOptions, RefetchQueryFilters, RefetchOptions, FetchQueryOptions, FetchInfiniteQueryOptions, DefaultOptions, OmitKeyof, MutationKey, MutationObserverOptions } from '@tanstack/query-core';
|
|
2
2
|
import { Ref } from 'vue-demi';
|
|
3
3
|
import { MaybeRef, MaybeRefOrGetter, DeepUnwrapRef, MaybeRefDeep, ShallowOption, QueryClientConfig, NoUnknown } from './types.cjs';
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ type UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey e
|
|
|
32
32
|
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey, TPageParam>(Observer: typeof QueryObserver, options: UseQueryOptionsGeneric<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseBaseQueryReturnType<TData, TError>;
|
|
33
33
|
|
|
34
34
|
type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = MaybeRef<{
|
|
35
|
-
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<
|
|
35
|
+
[Property in keyof QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>]: Property extends 'enabled' ? MaybeRefOrGetter<boolean | undefined> | (() => Enabled<TQueryFnData, TError, TQueryData, DeepUnwrapRef<TQueryKey>>) : MaybeRefDeep<QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, DeepUnwrapRef<TQueryKey>>[Property]>;
|
|
36
36
|
} & ShallowOption>;
|
|
37
37
|
type UndefinedInitialQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {
|
|
38
38
|
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-
|
|
2
|
+
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.cjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-
|
|
2
|
+
import { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './types.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-
|
|
1
|
+
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-CEu47BH9.cjs';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-
|
|
1
|
+
export { g as UseInfiniteQueryOptions, h as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './queryClient-CAHOJcvF.js';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryFilters as QueryFilters$1 } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep } from './types.cjs';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
|
|
6
6
|
type QueryFilters = MaybeRefDeep<QueryFilters$1>;
|
|
7
7
|
declare function useIsFetching(fetchingFilters?: MaybeRefDeep<QueryFilters$1>, queryClient?: QueryClient): Ref<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryFilters as QueryFilters$1 } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep } from './types.js';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
|
|
6
6
|
type QueryFilters = MaybeRefDeep<QueryFilters$1>;
|
|
7
7
|
declare function useIsFetching(fetchingFilters?: MaybeRefDeep<QueryFilters$1>, queryClient?: QueryClient): Ref<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToRefs } from 'vue-demi';
|
|
2
2
|
import { DefaultError, MutationObserverOptions, DistributiveOmit, MutationObserverResult, MutateFunction } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep, ShallowOption } from './types.cjs';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
5
5
|
|
|
6
6
|
type MutationResult<TData, TError, TVariables, TContext> = DistributiveOmit<MutationObserverResult<TData, TError, TVariables, TContext>, 'mutate' | 'reset'>;
|
|
7
7
|
type UseMutationOptionsBase<TData, TError, TVariables, TContext> = MutationObserverOptions<TData, TError, TVariables, TContext> & ShallowOption;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToRefs } from 'vue-demi';
|
|
2
2
|
import { DefaultError, MutationObserverOptions, DistributiveOmit, MutationObserverResult, MutateFunction } from '@tanstack/query-core';
|
|
3
3
|
import { MaybeRefDeep, ShallowOption } from './types.js';
|
|
4
|
-
import { Q as QueryClient } from './queryClient-
|
|
4
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
5
5
|
|
|
6
6
|
type MutationResult<TData, TError, TVariables, TContext> = DistributiveOmit<MutationObserverResult<TData, TError, TVariables, TContext>, 'mutate' | 'reset'>;
|
|
7
7
|
type UseMutationOptionsBase<TData, TError, TVariables, TContext> = MutationObserverOptions<TData, TError, TVariables, TContext> & ShallowOption;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core';
|
|
3
|
-
import { Q as QueryClient } from './queryClient-
|
|
3
|
+
import { Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
4
4
|
import { MaybeRefDeep } from './types.cjs';
|
|
5
5
|
|
|
6
6
|
type MutationFilters = MaybeRefDeep<MutationFilters$1>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { MutationFilters as MutationFilters$1, MutationState, Mutation } from '@tanstack/query-core';
|
|
3
|
-
import { Q as QueryClient } from './queryClient-
|
|
3
|
+
import { Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
4
4
|
import { MaybeRefDeep } from './types.js';
|
|
5
5
|
|
|
6
6
|
type MutationFilters = MaybeRefDeep<MutationFilters$1>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefinedQueryObserverResult, DefaultError, QueryFunction, ThrowOnError, QueryKey } from '@tanstack/query-core';
|
|
3
|
-
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-
|
|
3
|
+
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-CEu47BH9.cjs';
|
|
4
4
|
import { ShallowOption, MaybeRefDeep, DeepUnwrapRef } from './types.cjs';
|
|
5
5
|
|
|
6
6
|
type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefinedQueryObserverResult, DefaultError, QueryFunction, ThrowOnError, QueryKey } from '@tanstack/query-core';
|
|
3
|
-
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-
|
|
3
|
+
import { b as UseQueryOptions, Q as QueryClient } from './queryClient-CAHOJcvF.js';
|
|
4
4
|
import { ShallowOption, MaybeRefDeep, DeepUnwrapRef } from './types.js';
|
|
5
5
|
|
|
6
6
|
type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n
|
|
1
|
+
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n Enabled,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n ?\n | MaybeRefOrGetter<boolean | undefined>\n | (() => Enabled<\n TQueryFnData,\n TError,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >)\n : MaybeRefDeep<\n QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >[Property]\n >\n } & ShallowOption\n>\n\nexport type UndefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type DefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n}\n\nexport type UseQueryReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError\n>\n\nexport type UseQueryDefinedReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError,\n DefinedQueryObserverResult<TData, TError>\n>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryDefinedReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n):\n | UseQueryReturnType<TData, TError>\n | UseQueryDefinedReturnType<TData, TError> {\n return useBaseQuery(QueryObserver, options, queryClient)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA8B;AAC9B,0BAA6B;AA6HtB,SAAS,SAMd,SAOA,aAG2C;AAC3C,aAAO,kCAAa,iCAAe,SAAS,WAAW;AACzD;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-
|
|
2
|
+
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-CEu47BH9.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-
|
|
2
|
+
export { f as DefinedInitialQueryOptions, e as UndefinedInitialQueryOptions, d as UseQueryDefinedReturnType, b as UseQueryOptions, c as UseQueryReturnType, u as useQuery } from './queryClient-CAHOJcvF.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n
|
|
1
|
+
{"version":3,"sources":["../../src/useQuery.ts"],"sourcesContent":["import { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n DefinedQueryObserverResult,\n Enabled,\n InitialDataFunction,\n NonUndefinedGuard,\n QueryKey,\n QueryObserverOptions,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryReturnType } from './useBaseQuery'\nimport type {\n DeepUnwrapRef,\n MaybeRef,\n MaybeRefDeep,\n MaybeRefOrGetter,\n ShallowOption,\n} from './types'\nimport type { QueryClient } from './queryClient'\n\nexport type UseQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = MaybeRef<\n {\n [Property in keyof QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >]: Property extends 'enabled'\n ?\n | MaybeRefOrGetter<boolean | undefined>\n | (() => Enabled<\n TQueryFnData,\n TError,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >)\n : MaybeRefDeep<\n QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n DeepUnwrapRef<TQueryKey>\n >[Property]\n >\n } & ShallowOption\n>\n\nexport type UndefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type DefinedInitialQueryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n}\n\nexport type UseQueryReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError\n>\n\nexport type UseQueryDefinedReturnType<TData, TError> = UseBaseQueryReturnType<\n TData,\n TError,\n DefinedQueryObserverResult<TData, TError>\n>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryDefinedReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n): UseQueryReturnType<TData, TError>\n\nexport function useQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n queryClient?: QueryClient,\n):\n | UseQueryReturnType<TData, TError>\n | UseQueryDefinedReturnType<TData, TError> {\n return useBaseQuery(QueryObserver, options, queryClient)\n}\n"],"mappings":";AAAA,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AA6HtB,SAAS,SAMd,SAOA,aAG2C;AAC3C,SAAO,aAAa,eAAe,SAAS,WAAW;AACzD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.82.0",
|
|
4
4
|
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue",
|
|
5
5
|
"author": "Damian Osipiuk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@tanstack/match-sorter-utils": "^8.19.4",
|
|
43
43
|
"@vue/devtools-api": "^6.6.3",
|
|
44
44
|
"vue-demi": "^0.14.10",
|
|
45
|
-
"@tanstack/query-core": "5.
|
|
45
|
+
"@tanstack/query-core": "5.82.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitejs/plugin-vue": "^5.2.4",
|
package/src/useQuery.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { useBaseQuery } from './useBaseQuery'
|
|
|
3
3
|
import type {
|
|
4
4
|
DefaultError,
|
|
5
5
|
DefinedQueryObserverResult,
|
|
6
|
+
Enabled,
|
|
6
7
|
InitialDataFunction,
|
|
7
8
|
NonUndefinedGuard,
|
|
8
9
|
QueryKey,
|
|
@@ -33,15 +34,14 @@ export type UseQueryOptions<
|
|
|
33
34
|
TQueryData,
|
|
34
35
|
TQueryKey
|
|
35
36
|
>]: Property extends 'enabled'
|
|
36
|
-
?
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
>
|
|
37
|
+
?
|
|
38
|
+
| MaybeRefOrGetter<boolean | undefined>
|
|
39
|
+
| (() => Enabled<
|
|
40
|
+
TQueryFnData,
|
|
41
|
+
TError,
|
|
42
|
+
TQueryData,
|
|
43
|
+
DeepUnwrapRef<TQueryKey>
|
|
44
|
+
>)
|
|
45
45
|
: MaybeRefDeep<
|
|
46
46
|
QueryObserverOptions<
|
|
47
47
|
TQueryFnData,
|