modelenceMutation<Defined in: index.ts:242 Creates mutation options for use with TanStack Query’s useMutation hook.T>(methodName,defaultArgs):object
Example
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | unknown | The expected return type of the mutation |
Parameters
| Parameter | Type | Description |
|---|---|---|
methodName | string | The name of the method to mutate |
defaultArgs | Args | Optional default arguments to merge with mutation variables |
Returns
object
Mutation options object for TanStack Query’s useMutation
| Name | Type | Defined in |
|---|---|---|
mutationFn() | (variables) => Promise<T> | index.ts:247 |