⬆ Bump react-hook-form from 7.49.3 to 7.62.0 in /frontend
Type: Pull Request
State: Closed
Association: None
Comments: 1
(10 months ago)
(9 months ago)
(9 months ago)
dependencies javascript
Bumps react-hook-form from 7.49.3 to 7.62.0.
Release notes
Sourced from react-hook-form's releases.
Version 7.62.0
👨🔧 prevent onBlur for readOnly fields (#12971) 🐞 fix #12988 sync two defaultValues after reset with new defaultValues (#12990) 🐞 fix: do not override prototype of data in cloneObject (#12985) 🐞 fix field name type conflict in nested FieldErrors (#12972)
thanks to
@candymask0712,@Adityapradh,@Ty3uK&@kichikawa57Version 7.61.1
Revert "⌨️ fix: watch return type based on defaultValue (#12896)"
Version 7.61.0
🧮 feat: compute prop for useWatch subscription (#12503)
- 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 : '';
},
});
👨🔧 trigger watch callbacks in response to value changes only (#12945) 🙏 track name with setValue subscription callbacks (#12946)
... (truncated)
Commits
1b5a6747.62.06025100🐞 fix #12988 sync two defaultValues after reset with new defaultValues (#12990)323cd41🐞 fix field name type conflict in nested FieldErrors (#12972)dac28d6👨🔧 fix: prevent onBlur for readOnly fields (#12971)642145a🧪 test: add unit tests for convertToArrayPayload utility (#12967)15c03a5🐞 fix: do not override prototype ofdataincloneObject(#12985)13465d97.61.14a7f371Revert "⌨️ fix: watch return type based on defaultValue (#12896)"343ac037.61.03f4d24c🐞 fix #12959 subscribe with latest defaultValues #12961- 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)
Pull Request Statistics
1
2
+10
-11
Package Dependencies
react-hook-form
npm
7.49.3 → 7.62.0
Minor
/frontend
Technical Details
| ID: | 4496420 |
| UUID: | 2716448915 |
| Node ID: | PR_kwDOPHhu9c6h6biT |
| Host: | GitHub |
| Repository: | bigjohncodes/fullstack-fastapi |
| Mergeable: | Yes |
| Merge State: | Unstable |
| Rebaseable: | Yes |