@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
12 lines (11 loc) • 452 B
TypeScript
/**
* Hook for form persistence functionality
* Provides methods to save, restore, and clear form data
*/
export declare const useFormPersistence: (formKey?: string) => {
saveFormData: (data: Record<string, any>, isDirty?: boolean) => void;
restoreFormData: () => Record<string, any> | null;
clearPersistedData: () => void;
hasPersistedData: () => boolean;
getPersistedDataInfo: () => import("..").FormPersistenceData | null;
};