Skip to content

0.1.2

Latest
Compare
Choose a tag to compare
@micahjon micahjon released this 13 Oct 06:54
· 1 commit to main since this release
ecb56e9

Typescript / autocompletion improvements:

  • Improve type-safety of useCondition([...paths], conditions, getValues, control) hook by narrowing paths to only field paths associated with conditions, not any field path associated with the form.
    This improves editor autocompletion and type safety.
  • If a path is ever provided to useCondition() that is is not able to find a condition for, log a warning in the console.
    This should always be accompanied by a type error (above), but is a good safeguard so that useCondition() never fails silently.

Full Changelog: v0.1.1...v0.1.2