Skip to main content

OvokMutationState

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Type alias
Package: @ovok/core

Import​

import { OvokMutationState } from '@ovok/core';

TypeScript shape​

type OvokMutationState<TParams, TData> = {
data: TData | undefined;
loading: boolean;
error: Error | undefined;
mutate: (params: TParams) => Promise<TData>;
reset: () => void;
};

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
dataTData | undefined—
loadingboolean—
errorError | undefined—
mutate(params: TParams): Promise<TData>—
reset(): void—

Learn the workflow​

Continue with React for the workflow context and examples.

Source​

View the declaration in the SDK source.