5.0.0 (2025-04-01)
Features
BREAKING CHANGES
- Requires react-hook-form@7.55.0 or higher
Before
Prior to V5, some projects used manual types like
useForm<FormValues>();
After
With V5, the correct approach is:
useForm<Input, Context, Output>();
useForm<FormInputValues, Context, FormOutputValues>();
This update enables distinct outputs when utilizing features like transform
from validation libraries.
ℹ️ The best approach is to let the types be inferred from your schema, rather than manually defining them.