๐ React Hooks for form state management and validation (Web + React Native)
MIT License
Bot releases are visible (Hide)
Published by bluebill1049 over 3 years ago
๐ fix #4957 radio/checkbox gets unregistered until all unmounted (#4959)
Published by bluebill1049 over 3 years ago
๐ fix formState gets reset during shouldUnregister: true mode (#4949)
Published by bluebill1049 over 3 years ago
๐ fix #4947 with missing register options (#4948)
Published by bluebill1049 over 3 years ago
Revert "๐ fix toggle Controller value in useFieldArray (#4861)" (#4945)
๐ป fix #4938 issue with watch internal measure against components mounted (#4939)
Published by bluebill1049 over 3 years ago
๐บ trigger result validation output (#4856)
const output = await trigger('fieldName');
๐ fix toggle Controller value in useFieldArray (#4861)
๐ fix #4912 watch return undefined due to reset (#4921)
๐ fix #4929 input freeze with shouldUnregister: true issue with watch useFieldArray (#4930)
๐ป fix trigger with every
filter and update unit tests (#4937)
Published by bluebill1049 over 3 years ago
โจ๏ธ fix #4895 remove incorrect type for validation return messages
Published by bluebill1049 over 3 years ago
๐ V6: useFieldArray with nested useFieldArray renders with fields
Published by bluebill1049 over 3 years ago
๐ fix #4865 validation skip for custom set error message (#4892)
๐งค fix issue with unregister input during watch action (#4890)
๐ fix regression #4885 regression on isDirty (#4886)
๐คฒ improve behaviour on shouldUnregister
(#4876)
๐ fix #4864 issue with Controller getting unregister with shouldUnreiister: true at useForm (#4873)
๐ผ useForm shouldUnregister: true (#4847)
Published by bluebill1049 over 3 years ago
๐ fix #4859 issue with reset trigger unregister subscription (#4860)
Published by bluebill1049 over 3 years ago
๐ config shouldUnregister
(#4758)
// global config
useForm({
shouldUnregister: true // default to true
});
// component level
useController({
shouldUnregister: true // default to true
})
<Controller shouldUnregister={true} />
useFieldArray({
shouldUnregister: true // default to true
})
register('name', { shouldUnregister: true })
๐ fix #4812 issue with unmounted useFieldArray fetch incorrect value
๐ improve perf by skip logic with pure input without validation (#4838)
๐ fix #4830 getIsDirty() during the reset action (#4836)
๐ make it work with TaroJs (#4825)
Published by bluebill1049 over 3 years ago
๐๐ป fix register option for register validation inputs (#4805)
๐ fix #4795 isValid not return correctly during onMount useEffect (#4804)
Published by bluebill1049 over 3 years ago
๐ fix #4792 issue with nested field array append
Published by bluebill1049 over 3 years ago
โจ close #4120 useForm setFocus method (#4623)
๐ fix #4772 reset at root level of registered field (#4784)
๐ fix #4762 useWatch deep nested object watch (#4764)
๐ fix #4752 defaultChecked for radio and checkbox (#4756)
Published by bluebill1049 over 3 years ago
๐ update package.json - fix exports (#4737)
โ๏ธ fix #4375 inline defaultChecked (#4736)
Published by bluebill1049 over 3 years ago
๐งโ๐ป improve register DX when ref is not registered (#4733)
๐ทโโ๏ธ simplify the build process (#4723)
โจ๏ธ fix typings for watch (#4721)
๐ fix can not reuse a regexp with g flag as pattern (#4714)
Published by bluebill1049 over 3 years ago
โจ๏ธ fix #4705 watch type for defaultValue (#4707)
๐ fix #4703 useWatch cache with previous name (#4706)
๐ป close #4696 with ref callback type error (#4697)
๐ช๐ป reduce code check for error object and reduce re-render (#4689)
๐๐ปโโ๏ธ move error check file to inline and save size (#4685)
๐ fix #4679 isValid with custom register (#4684)
๐ fix #4665 input file required validation (#4666)
Published by bluebill1049 over 3 years ago
๐ fix 4653 valueAsNumber with required validation (#4660)
๐ fix #4653 by prevent spread primitive data (#4658)
๐ค close #4646 useWatch infinite loop (#4656)
๐น fix controller's rules type (#4645)
Published by bluebill1049 over 3 years ago
๐ fix #4627 validate for input number 0 (#4641)
๐ fix #4617 input date type issue with React (#4640)
๐ fix #4637 when reset field array with setValue (#4639)
Published by bluebill1049 over 3 years ago
๐ fix #4628 useController/controller issue with dirtyFields (#4635)
Published by bluebill1049 over 3 years ago
๐ช๐ป #4603 Should return boolean value "true" for checkbox that has empty string value of attribute "value" (#4614)
๐ fix #4597 watch intercept dirty return value (#4612)
๐ fix #4599 useController/Controller type check with render prop (#4600)
๐ก refactor: add eslint plugin to sort imports / exports (#4605)