Libraries v5.2.0
    Preparing search index...

    Type Alias UseSchemaFormOptions

    Options for useSchemaForm.

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

    Adopt changed validation rules without resetting values, touched or dirty. Field names and value types must stay fixed for the form's lifetime. Changes invalidate older validation/submission callbacks and revalidate immediately without touching additional fields.

    false
    
    validateOnBlur?: boolean

    Validate immediately when a field blurs, cancelling pending debounced validation. Only that field becomes touched; other fields keep their state. Existing change-triggered validation is unaffected.

    false
    
    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 });