Skip to content

v0.5.4

Choose a tag to compare

@garystorey garystorey released this 17 Jul 20:56
· 23 commits to main since this release
b3bec28
  • Converted touched object to isTouched function. Ex: touched.firstName becomes isTouched("firstName")

  • Converted dirty object to isDirty function. Ex: dirty.firstName becomes isDirty("firstName")

  • Updated isDirty when no key is passed, returns true/false if any field is dirty. Ex: const isFormDirty = isDirty()

  • Updated isTouched when no key is passed, returns true/false if any field is dirty Ex: const isFormTouched = isTouched()

  • Updated setField to validate the given value before setting the field. If the given value is invalid, it returns false and does not update the field.