Releases: react-hook-form/resolvers
Releases 路 react-hook-form/resolvers
v3.4.2
v3.4.1
v3.4.0
v3.3.4
v3.3.3
v3.3.2
v3.3.1
v3.3.0
v3.2.0
v3.1.1
3.1.1 (2023-06-12)
BREAKING CHANGES
Bug Fixes
You don't need to explicitly provide the type when using the useForm function because it automatically infers the types from the Yup schema.
Before
const schema = Yup.shape({ name: string });
const { register } = useForm<{name: string}>({ resolver: yupResolver(schema) });
After
const schema = Yup.shape({ name: string });
const { register } = useForm({ resolver: yupResolver(schema) });