useOvokMutation
Generic mutation hook for any typed OvokClient method.
Kind: React hook
Package: @ovok/core
Import
import { useOvokMutation } from '@ovok/core';
TypeScript signatures
<TParams, TData>(mutateRequest: (client: OvokClient, params: TParams) => Promise<TData>): OvokMutationState<TParams, TData>
| Parameter | Type | Details |
|---|---|---|
mutateRequest | (client: OvokClient, params: TParams) => Promise<TData> | — |
Returns: OvokMutationState<TParams, TData>.
Learn the workflow
Continue with React for the workflow context and examples.