Skip to content

Commit

Permalink
Fix typo in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
micahjon authored Oct 13, 2024
1 parent ecb56e9 commit 4376ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [0.1.2] - 2024-10-12

- Improve type-safety of `useCondition(paths, conditions, getValues)` hook by narrowing `paths` to only field paths associated with `conditions`, not any field path associated with the form.
- 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.
Expand Down

0 comments on commit 4376ec9

Please sign in to comment.