Skip to content

v0.4.0

Compare
Choose a tag to compare
@thomashoneyman thomashoneyman released this 24 Oct 01:47
225dd6c

This release adds two new helper functions:

  • setValidateAll, which allows you to set all values of a form and also trigger validation on them all
  • modifyValidateAll, which allows you to apply update functions to all values of a form and also trigger validation

In addition, it adjusts all setAll / modifyAll variants to take a record of raw inputs, rather than a record of InputField. This enables you to do this:

F.setAll_ { a: 1, b: "hello" }

instead of this:

F.setAll_ $ F.wrapInputFields { a: 1, b: "hello" }