Skip to content

API reference > @kontsedal/olas-vue > useMutation

useMutation() function ​

Subscribe a component to a mutation a controller made. mutate is the call for an event handler; run returns the promise.

Signature:

typescript
export declare function useMutation<V, R>(mutation: Mutation<V, R>): UseMutationReturn<V, R>;

Parameters ​

Parameter

Type

Description

mutation

Mutation<V, R>

Returns:

UseMutationReturn<V, R>

Released under the MIT License.