full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
⬆ Bump react-hook-form from 7.49.3 to 7.57.0 in /frontend
Bumps react-hook-form from 7.49.3 to 7.57.0.
Release notes
Sourced from react-hook-form's releases.
Version 7.57.0
🫚 feat: root errors count in schema error lookup (#12839) 👁️ feat: focus form field for errors supplied by errors prop (#12805) ⌨️ feat: add and export options config for resetField api (#12819) 🐞 close #12707 useController focus function runtime issue (#12843) 🐞 fix: add proper types to form.subscribe (#12850) 🐞 fix: add type info for callback args in subscribe (#12859) 🔄 close #12835 revert original fix on errors empty object check (#12846)
Version 7.57.0-next.0
👀
useWatchnewcomputeprops
- subscribe to the entire form but only return updated value with certain condition
type FormValue = { test: string; }const watchedValue = useWatch({
control: methods.control,
compute: (data: FormValue) => {
if (data.test?.length) {
return data.test;
}return '';},
});
- subscribe to a specific form value state
type FormValue = { test: string; }const watchedValue = useWatch({
control: methods.control,
name: 'test',
compute: (data: string) => {
return data.length > 3 ? data : '';
},
});
Version 7.56.4
🐞 fix: Changes setValue to skip values that are not in ownProperties to prevent infinite call stack (#12731) 🐞 fix: checkbox duplication handling in useFieldArray (#12793)
... (truncated)
Commits
e49d8a87.57.03fd740f🐞 fix: add type info for callback args in subscribe (#12859)90cdaee🐞 fix: add proper types toform.subscribe(#12850)cff8819🔄 close #12835 revert original fix on errors empty object check (#12846)d666a76👁️ feat: focus form field for errors supplied by errors prop (#12805)490f04f🐞 close #12707 useController focus function runtime issue (#12843)c22c028⌨️ rename to UseFormResetFieldOptions for type consistency5345f0d⌨️ feat: add and export options config for resetField api (#12819)d7aa973🫚 feat: root errors count in schema error lookup (#12839)8f874e1🌎 remove www. for the doc- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)