github react-hook-form/resolvers v3.1.1

latest releases: v3.9.1, v3.9.0, v3.8.0...
17 months ago

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) });

Don't miss a new resolvers release

NewReleases is sending notifications on new releases.