Libraries
    Preparing search index...

    Type Alias UseSchemaFormOptions

    Options for useSchemaForm.

    type UseSchemaFormOptions = {
        createMissingStructure?: boolean;
        validateOnMount?: boolean;
        validationDebounceMs?: number;
    }
    Index

    Properties

    createMissingStructure?: boolean
    validateOnMount?: boolean

    When true, runs full schema validation on mount and marks all fields as touched so that error messages (e.g. for required fields) are visible immediately without waiting for user interaction.

    false
    
    validationDebounceMs?: number

    Debounce delay in milliseconds for onChange-triggered validation. When set, rapid field changes only trigger one validation run after the user stops typing for the specified duration.

    Explicit calls to form.validate(), form.submit(), and validateOnMount are not debounced — they always run immediately.

    const form = useSchemaForm(Schema, { validationDebounceMs: 300 });