Potential breaking changes
- The changelog explicitly labels a breaking change.
The deprecation with
UnpackNestedValuecaused a breaking change on the@hookform/resolverspackage, please refer to the changelog and upgrade the resolver to the latest.
⚛️ upgrade to react 18 (https://github.com/react-hook-form/react-hook-form/pull/8529)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/8558 missing select function for controlled component (https://github.com/react-hook-form/react-hook-form/pull/8559)
🔬 improve nested field errors type (https://github.com/react-hook-form/react-hook-form/pull/8527)
🗑 UseFormHandleSubmit remove unused generic (https://github.com/react-hook-form/react-hook-form/pull/8526)
👋 deprecate on NestedValue and UnpackNestedValue (https://github.com/react-hook-form/react-hook-form/pull/8528)
type FormValues = {
- select: NestedValue<{
- nested: string
- }>
+ select: {
+ nested: string
+ }
}
errors.select.message ✅
Important (25/06/2022)
The deprecation with UnpackNestedValue caused a breaking change on the package, please refer to the changelog and upgrade the resolver to the latest.