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
| Member | Type | Details |
|---|---|---|
data | TData | undefined | — |
loading | boolean | — |
error | Error | undefined | — |
mutate | (params: TParams): Promise<TData> | — |
reset | (): void | — |
Learn the workflow
Continue with React for the workflow context and examples.