Skip to main content

AutoSave utility

AutoSave utility is simple solution to trigger action whenever something new happened to the values inside created Form.

This feature is wrapped in throttle solution so you can setup the delay between user action to catch and then trigger the onAutoSave method.

In the example, with 2 sec throttle, you can see the log in the console with the form values.

type FormTypeProps = {
// ... rest of the Form props,
onAutoSave?: (formValues: Record<string, any>) => void;
autoSaveThrottleDelay?: number;
}
Live Editor
Result