useQuery
function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
initialData?: () => undefined;
}): UseQueryResult<TData, TError>;function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
initialData: TQueryFnData | (() => TQueryFnData);
}): DefinedUseQueryResult<TData, TError>;function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>): UseQueryResult<TData, TError>;
function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
initialData?: () => undefined;
}): UseQueryResult<TData, TError>;function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
initialData: TQueryFnData | (() => TQueryFnData);
}): DefinedUseQueryResult<TData, TError>;function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey">): UseQueryResult<TData, TError>;
function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
): UseQueryResult<TData, TError>;initialData?: () => undefined;
},function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
): DefinedUseQueryResult<TData, TError>;initialData: TQueryFnData | (() => TQueryFnData);
},function useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(
queryKey: TQueryKey,
queryFn: QueryFunction<TQueryFnData, TQueryKey>,
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn">,
): UseQueryResult<TData, TError>;§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
[src]initialData?: () => undefined;
}): UseQueryResult<TData, TError>§Type Parameters
§Parameters
§
options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
[src]initialData?: () => undefined;
}§Return Type
§
UseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
}): DefinedUseQueryResult<TData, TError>§Type Parameters
§Parameters
§
options: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
}§Return Type
§
DefinedUseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>): UseQueryResult<TData, TError>
[src]§Type Parameters
§Parameters
§
options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>
[src]§Return Type
§
UseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
[src]initialData?: () => undefined;
}): UseQueryResult<TData, TError>§Type Parameters
§Parameters
§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
[src]initialData?: () => undefined;
} optional§Return Type
§
UseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
}): DefinedUseQueryResult<TData, TError>§Type Parameters
§Parameters
§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
} optional§Return Type
§
DefinedUseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey">): UseQueryResult<TData, TError>
[src]§Type Parameters
§Parameters
§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey"> optional
[src]§Return Type
§
UseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, queryFn: QueryFunction<TQueryFnData, TQueryKey>, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
[src]initialData?: () => undefined;
}): UseQueryResult<TData, TError>§Type Parameters
§Parameters
§
queryFn: QueryFunction<TQueryFnData, TQueryKey>
[src]§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
[src]initialData?: () => undefined;
} optional§Return Type
§
UseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, queryFn: QueryFunction<TQueryFnData, TQueryKey>, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
}): DefinedUseQueryResult<TData, TError>§Type Parameters
§Parameters
§
queryFn: QueryFunction<TQueryFnData, TQueryKey>
[src]§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn" | "initialData"> & {
[src]initialData: TQueryFnData | (() => TQueryFnData);
} optional§Return Type
§
DefinedUseQueryResult<TData, TError>
[src]§
useQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(queryKey: TQueryKey, queryFn: QueryFunction<TQueryFnData, TQueryKey>, options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn">): UseQueryResult<TData, TError>
[src]§Type Parameters
§Parameters
§
queryFn: QueryFunction<TQueryFnData, TQueryKey>
[src]§
options?: Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, "queryKey" | "queryFn"> optional
[src]§Return Type
§
UseQueryResult<TData, TError>
[src]