Skip to content

API reference > @kontsedal/olas-core > MutationHooks

MutationHooks type ​

The per-owner half of a mutation: what createMutation(ctx, def, hooks) adds.

Signature:

typescript
type MutationHooks<V, R> = Pick<MutationSpec<V, R>, 'onMutate' | 'onSuccess' | 'onError' | 'onSettled' | 'detached'>;

References: MutationSpec

Released under the MIT License.