#
Interface: UseMutation<GeneratedSchema>#
Type parametersName | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.mutation | object |
#
Callableâ–¸ UseMutation<TData, TArgs>(mutationFn?
: (mutation
: GeneratedSchema[mutation], args
: TArgs) => TData, options?
: UseMutationOptions<TData>): readonly [(...opts
: undefined extends TArgs ? [object?] : [{ args
: TArgs ; fn?
: (mutation
: GeneratedSchema[mutation], args
: TArgs) => TData }]) => Promise<TData>, UseMutationState<TData>]
#
Type parameters:Name | Default |
---|---|
TData | unknown |
TArgs | undefined |
#
Parameters:Name | Type |
---|---|
mutationFn? | (mutation : GeneratedSchema[mutation], args : TArgs) => TData |
options? | UseMutationOptions<TData> |
Returns: readonly [(...opts
: undefined extends TArgs ? [object?] : [{ args
: TArgs ; fn?
: (mutation
: GeneratedSchema[mutation], args
: TArgs) => TData }]) => Promise<TData>, UseMutationState<TData>]
Defined in: react/src/mutation/useMutation.ts:89