Skip to content

v3.1.1

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jun 17:05
· 24 commits to master since this release
420e862

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