Hex Core JS
    Preparing search index...

    Type Alias UseFormValuesStateArgs<FV>

    type UseFormValuesStateArgs<FV extends FormValues> = {
        blankFormValues?: TypeOrFunction<Partial<FV>>;
        initialFormValues: TypeOrFunction<FV>;
    }

    Type Parameters

    Index

    Properties

    blankFormValues?: TypeOrFunction<Partial<FV>>

    Provides type guidance for use when clearing form values. Without blankFormValues, the blank value for each field is determined by the initial value of each field. Useful for types that can be null but may have an initial value that is not null (e.g. string | null for dates, number | null for numbers, and boolean | null is common as well).

    Generally this option is not necessary when working with standard form fields from this package. Only when working on more customized forms.

    That undefined is not a valid form field value.

    initialFormValues: TypeOrFunction<FV>