UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

16 lines 832 B
import type { IRefineContextOptions } from "../../../contexts/refine/types"; import type { IUnsavedWarnContext } from "../../../contexts/unsavedWarn/types"; type UseWarnAboutChangeType = () => { warnWhenUnsavedChanges: IRefineContextOptions["warnWhenUnsavedChanges"]; warnWhen: NonNullable<IUnsavedWarnContext["warnWhen"]>; setWarnWhen: NonNullable<IUnsavedWarnContext["setWarnWhen"]>; }; /** * When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box. * To activate this feature, set the `warnWhenUnsavedChanges` to `true`. * * @see {@link https://refine.dev/docs/api-reference/core/components/refine-config#warnwhenunsavedchanges} for more details. */ export declare const useWarnAboutChange: UseWarnAboutChangeType; export {}; //# sourceMappingURL=index.d.ts.map