💥 Breaking Changes
The meta API wasn't documented before due to it being still ported form v3
and did not yet receive the overhaul treatment. The docs have been updated to reflect and document any missing information.
Here is a quick list of the changes:
- Removed redundant flags (
pristine
,untouched
,invalid
) as they can easily be computed from their opposite flags. - Removed combined flags (
passed
,failed
, andvalidated
) as they can be easily computed by combining various flags. i.e:passed = valid && touched
- Removed the
changed
flag, because it is inaccurate with any type of immutable objects, which is apparent in checkboxes. If you need to compute this flag then you need to provide your own logic to diff the initial and current value. - Added
initialValue
to themeta
object - The
valid
flag always starts off withfalse
, until it has been validated. So thefalse
value means two things: either the field was not validated, or it has been validated was found invalid. Previously this was very confusing wheninvalid
andvalid
flags both werefalse
at the same time.