Skip to main content

Interface: UseLazyQuery<GeneratedSchema>#

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 Sam Denty