Skip to content

isUnsetValue ​

Overview ​

Determines whether a field's value is unset (i.e., it has not been explicitly set).

Unlike defaultIsRequiredViolation, this function is used for form state tracking to determine whether a field has been given a meaningful value by the user.

Signature ​

isUnsetValue(value)

Parameters ​

NameTypeRequiredDescription
valueanyyesThe value to evaluate.

Returns ​

boolean

true if the field is considered unset, otherwise false.

Source ​

client/lib/use/useField.js:231