UNPKG

@refinedev/core

Version:

refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.

16 lines 806 B
import type { IRefineContextOptions } from "../../contexts/refine/types"; import type { MutationMode } from "../../contexts/data/types"; type UseMutationModeType = (preferredMutationMode?: MutationMode, preferredUndoableTimeout?: number) => { mutationMode: IRefineContextOptions["mutationMode"]; undoableTimeout: IRefineContextOptions["undoableTimeout"]; }; /** * Mutation mode determines which mode the mutation runs with. * Mutations can run under three different modes: `pessimistic`, `optimistic` and `undoable`. * Each mode corresponds to a different type of user experience. * * @see {@link https://refine.dev/docs/guides-and-concepts/mutation-mode} for more details. */ export declare const useMutationMode: UseMutationModeType; export {}; //# sourceMappingURL=useMutationMode.d.ts.map