⬆ ️ deps: Bump react-hook-form from 7.23.0 to 7.26.0
Bumps react-hook-form from 7.23.0 to 7.26.0.
Release notes
Sourced from react-hook-form's releases.
Version 7.26.0
📚 TSDoc
🐞 fix react-hook-form/react-hook-form#7741 is validating reset when async validations are still running (react-hook-form/react-hook-form#7747)⛑ close react-hook-form/react-hook-form#7717 shallow clone errors object in handleSubmit (react-hook-form/react-hook-form#7718)🍦 close react-hook-form/react-hook-form#7703 don't expose internal state in handleSubmit (react-hook-form/react-hook-form#7704)🏋 ️ save bytes on parseFloat (react-hook-form/react-hook-form#7697)thanks to
@Moshyfawn
and@tiii
Version 7.25.3
😭 close #7686 regression onreplace
API and cloneObject on payload (#7687)Version 7.25.2
⚛ ️ close #7683 support preact withonTouched
mode (#7684)thanks to
@Moshyfawn
Version 7.25.1
🐞 fix #7662 issue withreset
file input (#7656)🚗 improve perf with get proxy formState (#7655)🏋 ️ remove redundant check (#7651)🐞 fix #7648 Unable tosetFocus
to Controller after reset (#7649)🐞 fix:getFieldState
- error might be undefined (#7636)⛑ improve useFieldArray code consistency (#7628)thanks to
@Moshyfawn
and@michalbundyra
Version 7.25.0
✨ newgetFieldState
API: get individual field stateDocumentation: https://react-hook-form.com/api/useform/getfieldstate
import * as React from "react"; import { useForm } from "react-hook-form"; export default function App() { const { register, getFieldState, formState: { isDirty, isValid } } = useForm({ mode: "onChange", defaultValues: { </tr></table>
... (truncated)
Changelog
Sourced from react-hook-form's changelog.
Changelog
[7.25.2] - 2022-1-29
Changed
onTouched
mode will honorfocusout
event[7.25.0] - 2022-1-22
Added
getFieldState
get individual field stateexport default function App() { const { register, getFieldState, formState: { isDirty, isValid }, } = useForm({ mode: 'onChange', defaultValues: { firstName: '', }, }); // you can invoke before render or within the render function const fieldState = getFieldState('firstName'); return ( <form> <input {...register('firstName', { required: true })} /> <p>{getFieldState('firstName').isDirty && 'dirty'}</p> <p>{getFieldState('firstName').isTouched && 'touched'}</p> <button type="button" onClick={() => console.log(getFieldState('firstName'))} > field state </button> </form> ); }
[7.24.0] - 2022-1-14
Changed
... (truncated)
Commits
-
9319ce5
7.26.0 -
ca02e47
🐞 fix #7741 isValidating reset when async validations are still running (#7747) -
5beb42a
❤ ️ thank you Ian VanSchooten for sponsoring -
28419cf
⛑ close #7717 shallow clone errors object in handleSubmit (#7718) -
e2ec45f
📚 TSDoc (#7690) -
cb59bd6
🤦🏻 ♂️ fix readme -
dc56659
💆🏻 fix Backers section -
428f233
❤ ️ thank you Vince Fulco for sponsoring -
9403680
🍦 close #7703 don't expose internal state in handleSubmit (#7704) -
81236bb
🚚 fix reset test route typo (#7698) - Additional commits viewable in compare view