Closed renovate[bot] closed 3 years ago
Merging #59 (b2f4c12) into master (9d06a01) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #59 +/- ##
=======================================
Coverage 84.37% 84.37%
=======================================
Files 3 3
Lines 32 32
Branches 6 6
=======================================
Hits 27 27
Misses 4 4
Partials 1 1
Continue to review full report at Codecov.
Legend - Click here to learn more
ฮ = absolute <relative> (impact)
,รธ = not affected
,? = missing data
Powered by Codecov. Last update 1e4c40a...b2f4c12. Read the comment docs.
:tada: This PR is included in version 1.8.7 :tada:
The release is available on:
v1.8.7
Your semantic-release bot :package::rocket:
This PR contains the following updates:
6.15.8
->7.12.1
Release Notes
react-hook-form/react-hook-form
### [`v7.12.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.12.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.12.0...v7.12.1) ๐ fix [#6090](https://togithub.com/react-hook-form/react-hook-form/issues/6090) issue with set `defaultValue` as `string` with `valueAs` ([#6093](https://togithub.com/react-hook-form/react-hook-form/issues/6093)) ๐ make sure the field is set before setting it to mounted ([#6084](https://togithub.com/react-hook-form/react-hook-form/issues/6084)) ๐ fix [#6081](https://togithub.com/react-hook-form/react-hook-form/issues/6081) issue with delayError with formState ([#6083](https://togithub.com/react-hook-form/react-hook-form/issues/6083)) ### [`v7.12.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#7120---2021-07-24) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.11.1...v7.12.0) ### [`v7.11.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.11.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.11.0...v7.11.1) ๐ fix [#5944](https://togithub.com/react-hook-form/react-hook-form/issues/5944) reset issue with unmounted useFieldArray ([#5954](https://togithub.com/react-hook-form/react-hook-form/issues/5954)) ๐ fix [#5942](https://togithub.com/react-hook-form/react-hook-form/issues/5942) case when value is supplied as null/undefined โจ๏ธ close [#5928](https://togithub.com/react-hook-form/react-hook-form/issues/5928) improve useWatch and watch types ([#5945](https://togithub.com/react-hook-form/react-hook-form/issues/5945)) ๐ฎ fix [#5936](https://togithub.com/react-hook-form/react-hook-form/issues/5936) regression with controller value transform ([#5937](https://togithub.com/react-hook-form/react-hook-form/issues/5937)) ### [`v7.11.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#7110---2021-07-13) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.10.1...v7.11.0) ### [`v7.10.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.10.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.10.0...v7.10.1) ๐๏ธ fix [#5808](https://togithub.com/react-hook-form/react-hook-form/issues/5808) DeepMap extend issue with File ([#5813](https://togithub.com/react-hook-form/react-hook-form/issues/5813)) ๐ต๏ธ fix [#5816](https://togithub.com/react-hook-form/react-hook-form/issues/5816) variable name typo in useController ### [`v7.10.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#7100---2021-07-02) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.9.0...v7.10.0) ### [`v7.9.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#790---2021-06-19) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.8...v7.9.0) ### [`v7.8.8`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.8) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.7...v7.8.8) ๐ fix [#5627](https://togithub.com/react-hook-form/react-hook-form/issues/5627) defaultValue reset inconsistent with setValueAs ([#5634](https://togithub.com/react-hook-form/react-hook-form/issues/5634)) ### [`v7.8.7`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.7) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.6...v7.8.7) ๐ fix [#5623](https://togithub.com/react-hook-form/react-hook-form/issues/5623) Controller unmount to skip validation ([#5624](https://togithub.com/react-hook-form/react-hook-form/issues/5624)) ### [`v7.8.6`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.6) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.5...v7.8.6) ๐ fix [#5611](https://togithub.com/react-hook-form/react-hook-form/issues/5611) should not update dirty fields with blur event ([#5614](https://togithub.com/react-hook-form/react-hook-form/issues/5614)) ๐ fix [#5612](https://togithub.com/react-hook-form/react-hook-form/issues/5612) trigger() always return true ([#5613](https://togithub.com/react-hook-form/react-hook-form/issues/5613)) ### [`v7.8.5`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#785---2021-06-15) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.4...v7.8.5) ##### Change - `useController` no longer access input `ref` except `focus` event for focus management ### [`v7.8.4`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.4) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.3...v7.8.4) ๐ fix [#5555](https://togithub.com/react-hook-form/react-hook-form/issues/5555) register deeply nested field append with strict mode ([#5580](https://togithub.com/react-hook-form/react-hook-form/issues/5580)) ๐ fix [#5566](https://togithub.com/react-hook-form/react-hook-form/issues/5566) should unregister inputs when useFieldArray unmounted ([#5579](https://togithub.com/react-hook-form/react-hook-form/issues/5579)) ๐ข fix [#5568](https://togithub.com/react-hook-form/react-hook-form/issues/5568) include . for a precise focus index lookup ([#5578](https://togithub.com/react-hook-form/react-hook-form/issues/5578)) ๐ต๏ธโโ๏ธ improve logic on register absent inputs ([#5556](https://togithub.com/react-hook-form/react-hook-form/issues/5556)) ๐ฎ fix [#5538](https://togithub.com/react-hook-form/react-hook-form/issues/5538) type error with setError shouldFocus ### [`v7.8.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.2...v7.8.3) ๐ fix [#5527](https://togithub.com/react-hook-form/react-hook-form/issues/5527) resolver switching ([#5530](https://togithub.com/react-hook-form/react-hook-form/issues/5530)) ### [`v7.8.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.1...v7.8.2) ๐ fix [#5507](https://togithub.com/react-hook-form/react-hook-form/issues/5507) register with value issue ([#5511](https://togithub.com/react-hook-form/react-hook-form/issues/5511)) ### [`v7.8.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.0...v7.8.1) ๐ fix [#5499](https://togithub.com/react-hook-form/react-hook-form/issues/5499) issue with controller defaultValue overwrite defaultValues at useForm ([#5500](https://togithub.com/react-hook-form/react-hook-form/issues/5500)) ### [`v7.8.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#780---2021-06-5) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.7.1...v7.8.0) ##### Added - `setValue` support `shouldTouch` to update formState touchFields ```tsx setValue('firstName', 'value', { shouldTouch: true }); ``` - `register` now accept `value` as option ```tsx register('firstName', { value: 'value' }); ``` ### [`v7.7.1`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#771---2021-05-30) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.7.0...v7.7.1) ##### Fixed - `shouldUnregister: false` should not shallow merge or register absent input fields from `defaultValues` ### [`v7.7.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#770---2021-05-29) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.10...v7.7.0) ##### Added - `trigger` support focus with error input ```ts trigger('inputName', { shouldFocus: true }); ``` ##### Changed - `handleSubmit` will `throw` error within the onSubmit callback ### [`v7.6.10`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.10) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.9...v7.6.10) ๐ close [#5379](https://togithub.com/react-hook-form/react-hook-form/issues/5379) getFieldValueAs return undefined when supplied with undefined ([#5381](https://togithub.com/react-hook-form/react-hook-form/issues/5381)) ๐ fix [#5382](https://togithub.com/react-hook-form/react-hook-form/issues/5382) trigger() return incorrect valid state ([#5383](https://togithub.com/react-hook-form/react-hook-form/issues/5383)) ### [`v7.6.9`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.9) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.8...v7.6.9) ๐ fix [#5366](https://togithub.com/react-hook-form/react-hook-form/issues/5366) inline defaultValue validation ([#5376](https://togithub.com/react-hook-form/react-hook-form/issues/5376)) โจ๏ธ improve controller defaultValue prop type ([#5375](https://togithub.com/react-hook-form/react-hook-form/issues/5375)) ๐๐ปโโ๏ธ reduce logic with value check ([#5356](https://togithub.com/react-hook-form/react-hook-form/issues/5356)) ### [`v7.6.8`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.8) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.7...v7.6.8) ๐ fix [#5361](https://togithub.com/react-hook-form/react-hook-form/issues/5361) remove check field logic for getFieldValues ([#5363](https://togithub.com/react-hook-form/react-hook-form/issues/5363)) ๐ fix [#5277](https://togithub.com/react-hook-form/react-hook-form/issues/5277) Update value when switch to enabled from initial disabled state ([#5350](https://togithub.com/react-hook-form/react-hook-form/issues/5350)) ๐ฆ update typescript and remove object define in useController ([#5353](https://togithub.com/react-hook-form/react-hook-form/issues/5353)) ### [`v7.6.7`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.7) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.6...v7.6.7) ๐ fix [#5344](https://togithub.com/react-hook-form/react-hook-form/issues/5344) avoid re-register inputs ([#5345](https://togithub.com/react-hook-form/react-hook-form/issues/5345)) ๐ close [#5283](https://togithub.com/react-hook-form/react-hook-form/issues/5283) useFieldArray issue with restrict mode ([#5331](https://togithub.com/react-hook-form/react-hook-form/issues/5331)) ๐๐ปโโ๏ธ save esm bundle size ([#5327](https://togithub.com/react-hook-form/react-hook-form/issues/5327)) โจ๏ธ accept readonly field path arrays ([#5317](https://togithub.com/react-hook-form/react-hook-form/issues/5317)) ### [`v7.6.6`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.6) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.5...v7.6.6) ๐ fix [#5300](https://togithub.com/react-hook-form/react-hook-form/issues/5300) issue with register absent deep nested object ([#5302](https://togithub.com/react-hook-form/react-hook-form/issues/5302)) ๐ต๏ธ close [#5297](https://togithub.com/react-hook-form/react-hook-form/issues/5297) issue with get with empty path ([#5298](https://togithub.com/react-hook-form/react-hook-form/issues/5298)) ### [`v7.6.5`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.5) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.4...v7.6.5) ๐ fix [#5286](https://togithub.com/react-hook-form/react-hook-form/issues/5286) `useWatch` with fieldArray inconsistent behaviour ([#5287](https://togithub.com/react-hook-form/react-hook-form/issues/5287)) ### [`v7.6.4`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.4) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.3...v7.6.4) ๐ fix [#5276](https://togithub.com/react-hook-form/react-hook-form/issues/5276) setValue with null ([#5278](https://togithub.com/react-hook-form/react-hook-form/issues/5278)) ### [`v7.6.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.2...v7.6.3) ๐ fix [#5246](https://togithub.com/react-hook-form/react-hook-form/issues/5246) useFieldArray with nested arrays throws error ([#5251](https://togithub.com/react-hook-form/react-hook-form/issues/5251)) ๐ fix [#5262](https://togithub.com/react-hook-form/react-hook-form/issues/5262) register checkbox issue with absent register ([#5263](https://togithub.com/react-hook-form/react-hook-form/issues/5263)) ### [`v7.6.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.1...v7.6.2) ๐ fix [#5234](https://togithub.com/react-hook-form/react-hook-form/issues/5234) should render error logic for valid state ([#5235](https://togithub.com/react-hook-form/react-hook-form/issues/5235)) โจ๏ธ fix missing-register-options-generic-type ([#5238](https://togithub.com/react-hook-form/react-hook-form/issues/5238)) ### [`v7.6.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.0...v7.6.1) ๐ fix [#5229](https://togithub.com/react-hook-form/react-hook-form/issues/5229) issue with ref becomes undefined ([#5233](https://togithub.com/react-hook-form/react-hook-form/issues/5233)) ๐ improve multiple useWatch performances ([#5210](https://togithub.com/react-hook-form/react-hook-form/issues/5210)) ๐ close [#5208](https://togithub.com/react-hook-form/react-hook-form/issues/5208) useFieldArray nested object with React.StrictMode ([#5209](https://togithub.com/react-hook-form/react-hook-form/issues/5209)) ### [`v7.6.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#760---2021-05-15) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.5.3...v7.6.0) ##### Changed - `useForm` will `register` missing inputs from `defaultValues` ```tsx const App = () => { const { register, handleSubmit } = useForm({ defaultValues: { test: { firstName: 'bill', lastName: 'luo' }, }, }); const onSubmit = (data) => { // missing registered input will be included console.log(data); // { test: { firstName: 'bill', lastName: 'luo' } } }; return ( ); }; ``` ### [`v7.5.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.5.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.5.2...v7.5.3) ๐ง close [#5162](https://togithub.com/react-hook-form/react-hook-form/issues/5162) watch behavior with useFieldArray set to `shouldUnregister: true` ([#5173](https://togithub.com/react-hook-form/react-hook-form/issues/5173)) ### [`v7.5.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.5.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.5.1...v7.5.2) โจ๏ธ fix [#5122](https://togithub.com/react-hook-form/react-hook-form/issues/5122) type issue with the message ([#5123](https://togithub.com/react-hook-form/react-hook-form/issues/5123)) ### [`v7.5.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.5.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.5.0...v7.5.1) ๐ fix [#5096](https://togithub.com/react-hook-form/react-hook-form/issues/5096) clearErrors with empty arg ([#5098](https://togithub.com/react-hook-form/react-hook-form/issues/5098)) ### [`v7.5.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#750---2021-05-09) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.4.2...v7.5.0) ##### Changed - `isSubmitSuccessful` will return false when `handleSubmit` callback failed with `Error` or `Promise` reject. - unmounted input will no longer get validated even with `shouldUnregister: false` ### [`v7.4.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.4.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.4.1...v7.4.2) ๐ fix [#5053](https://togithub.com/react-hook-form/react-hook-form/issues/5053) useFormState missing name ([#5058](https://togithub.com/react-hook-form/react-hook-form/issues/5058)) ๐ fix [#5051](https://togithub.com/react-hook-form/react-hook-form/issues/5051) trigger return with schema ([#5052](https://togithub.com/react-hook-form/react-hook-form/issues/5052)) ### [`v7.4.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.4.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.4.0...v7.4.1) ๐ fix \[v7]: trigger function always returns false [#5043](https://togithub.com/react-hook-form/react-hook-form/issues/5043) ๐ fix [#5027](https://togithub.com/react-hook-form/react-hook-form/issues/5027) unmounted useFieldArray not remounted with existing values ([#5028](https://togithub.com/react-hook-form/react-hook-form/issues/5028)) ### [`v7.4.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#740---2021-05-04) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.6...v7.4.0) ##### Added - new `name` prop for `useFormState` to subscribe to individual inputs. ```ts useFormState({ name: 'inputName', // optional and can be array of inputs' name as well }); ``` ### [`v7.3.6`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.6) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.5...v7.3.6) โจ๏ธ fix [#4994](https://togithub.com/react-hook-form/react-hook-form/issues/4994) typing for watch & getValues ([#5005](https://togithub.com/react-hook-form/react-hook-form/issues/5005)) โ๐ป close [#5001](https://togithub.com/react-hook-form/react-hook-form/issues/5001) fix unit test errors object issue ๐ fix use form trigger return type ([#5000](https://togithub.com/react-hook-form/react-hook-form/issues/5000)) ### [`v7.3.5`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.5) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.4...v7.3.5) ๐ fix [#4966](https://togithub.com/react-hook-form/react-hook-form/issues/4966) controller input ref gets overwrite ([#4970](https://togithub.com/react-hook-form/react-hook-form/issues/4970)) ๐ close [#4988](https://togithub.com/react-hook-form/react-hook-form/issues/4988) for parse input value during setValue \[JS only] ([#4989](https://togithub.com/react-hook-form/react-hook-form/issues/4989)) ๐ช๐ป improve unregister to info state update ([#4962](https://togithub.com/react-hook-form/react-hook-form/issues/4962)) ### [`v7.3.4`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.4) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.3...v7.3.4) ๐ fix [#4957](https://togithub.com/react-hook-form/react-hook-form/issues/4957) radio/checkbox gets unregistered until all unmounted ([#4959](https://togithub.com/react-hook-form/react-hook-form/issues/4959)) ### [`v7.3.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.2...v7.3.3) ๐ fix formState gets reset during shouldUnregister: true mode ([#4949](https://togithub.com/react-hook-form/react-hook-form/issues/4949)) ### [`v7.3.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.1...v7.3.2) ๐ fix [#4947](https://togithub.com/react-hook-form/react-hook-form/issues/4947) with missing register options ([#4948](https://togithub.com/react-hook-form/react-hook-form/issues/4948)) ### [`v7.3.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.3.0...v7.3.1) Revert "๐ fix toggle Controller value in useFieldArray ([#4861](https://togithub.com/react-hook-form/react-hook-form/issues/4861))" ([#4945](https://togithub.com/react-hook-form/react-hook-form/issues/4945)) ๐ป fix [#4938](https://togithub.com/react-hook-form/react-hook-form/issues/4938) issue with watch internal measure against components mounted ([#4939](https://togithub.com/react-hook-form/react-hook-form/issues/4939)) ### [`v7.3.0`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.3.0) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.2.3...v7.3.0) ๐บ trigger result validation output ([#4856](https://togithub.com/react-hook-form/react-hook-form/issues/4856)) ```ts const output = await trigger('fieldName'); ``` ๐ fix toggle Controller value in useFieldArray ([#4861](https://togithub.com/react-hook-form/react-hook-form/issues/4861)) ๐ fix [#4912](https://togithub.com/react-hook-form/react-hook-form/issues/4912) watch return undefined due to reset ([#4921](https://togithub.com/react-hook-form/react-hook-form/issues/4921)) ๐ fix [#4929](https://togithub.com/react-hook-form/react-hook-form/issues/4929) input freeze with shouldUnregister: true issue with watch useFieldArray ([#4930](https://togithub.com/react-hook-form/react-hook-form/issues/4930)) ๐ป fix trigger with `every` filter and update unit tests ([#4937](https://togithub.com/react-hook-form/react-hook-form/issues/4937)) ### [`v7.2.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.2.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.2.2...v7.2.3) โจ๏ธ fix [#4895](https://togithub.com/react-hook-form/react-hook-form/issues/4895) remove incorrect type for validation return messages ### [`v7.2.2`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#722---2021-04-21) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.2.1...v7.2.2) ##### Changes - set `shouldUnregister` to `true` will not shallow merge `defaultValues` ### [`v7.2.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.2.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.2.0...v7.2.1) ๐ fix [#4859](https://togithub.com/react-hook-form/react-hook-form/issues/4859) issue with reset trigger unregister subscription ([#4860](https://togithub.com/react-hook-form/react-hook-form/issues/4860)) ### [`v7.2.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#720---2021-04-19) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.1.1...v7.2.0) ##### Changes - `shouldUnregister` config to remove input value after unmount ```tsx // Global config (can't be overwrite) useForm({ shouldUnregister: true // default to false }) // Component/Hook level config (can not overwrites global config) register('test', { shouldUnregister: true // default to false })Configuration
๐ Schedule: "before 3am on the first day of the month" in timezone Europe/Paris.
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.