Skip to content

Releases: micahjon/rhf-conditional-logic

0.1.2

13 Oct 06:54
ecb56e9
Compare
Choose a tag to compare

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

0.1.1

15 Jul 05:17
b8c3ca9
Compare
Choose a tag to compare

No changes in functionality.

0.1.0

30 Dec 06:01
Compare
Choose a tag to compare

First stable release!

  • No changes in functionality. Just publishing a minor version instead of alpha versions since this library has been working well in production.
  • Publish JS files to NPM without minification to make downstream debugging easier