Skip to main content

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>
ParameterTypeDetails
mutateRequest(client: OvokClient, params: TParams) => Promise<TData>—

Returns: OvokMutationState<TParams, TData>.

Learn the workflow​

Continue with React for the workflow context and examples.

Source​

View the declaration in the SDK source.