Skip to main content

Type parameters

NameType
GeneratedSchemaobject
GeneratedSchema.queryobject

Callable#

UseLazyQuery<TData, TArgs>(queryFn: (query: GeneratedSchema["query"], args: TArgs) => TData, options?: UseLazyQueryOptions<TData>): readonly [(...opts: undefined extends TArgs ? [object?] : [{ args: TArgs ; fetchPolicy?: LazyFetchPolicy ; fn?: (query: GeneratedSchema["query"], args: TArgs) => TData }]) => Promise<TData>, UseLazyQueryState<TData>]

Type parameters:#

NameDefault
TDataunknown
TArgsundefined

Parameters:#

NameType
queryFn(query: GeneratedSchema["query"], args: TArgs) => TData
options?UseLazyQueryOptions<TData>

Returns: readonly [(...opts: undefined extends TArgs ? [object?] : [{ args: TArgs ; fetchPolicy?: LazyFetchPolicy ; fn?: (query: GeneratedSchema["query"], args: TArgs) => TData }]) => Promise<TData>, UseLazyQueryState<TData>]

Defined in: react/src/query/useLazyQuery.ts:86

Last updated on by github-actions[bot]