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