New Features
- Each field can now specify its own
isEqual
function for calculatingpristine
anddirty
. This enables arbitrary values. Defaults to===
. #46 final-form/react-final-form#59 - Each field can now provide a list of other fields for which to run field-level validation when the current field changes. #46 #37
⚠️ BREAKING CHANGE ⚠️
In v1.x.x
:
form.registerField(
name,
subscriber,
subscription,
validate
)
In v2.x.x
:
form.registerField(
name,
subscriber,
subscription,
{
isEqual,
validate,
validateFields
}
)