This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
Releases: wellyshen/react-cool-form
Releases · wellyshen/react-cool-form
v0.0.129
Patch Changes
8ae1f76
#436 Thanks @wellyshen! - Fix(useForm): single checkbox input with validvalue
attribute, the value will be a string array
<input name="foo" type="checkbox" /> // If it's checked, the output value will be true otherwise false
<input name="foo" type="checkbox" value="test" /> // If it's checked, the output value will be ["test"] otherwise []
v0.0.128
✨ New Feature
- Feat(useForm): add
id
andclass
for the excludeFields option. (b3554f2
) (#433)
v0.0.127
💥 Breaking Change
The controller
method of the useForm
hook has been removed, if you have used it to handle any controlled components, please use the new useControlled hook instead.
✨ New APIs
- Feat: new useControlled hook to help you handling 3rd-party library without the tears
- Feat: new useFormMethods hook for you to use all of the form methods from a component at any level
- Feat: new
defaultValues
options for both select method and useFormState hook
🐛 Bug Fixing
- Fix(useForm): do not trigger re-rendering when parsing value from a field's
defaultValue
attribute - Fix(type): correct the
parse
option type of thefield
method
v0.0.126
Patch Changes
fe7942d
Thanks @wellyshen! - Fix(useForm): fix potential side-effect of the values of form state
v0.0.125
Patch Changes
eb767bd
Thanks @wellyshen! - Fix(useForm): fix set default values side-effect
v0.0.124
Patch Changes
ed388fb
Thanks @wellyshen! - Refactor(useFormState): use error instead warn for form id related exceptions
v0.0.123
Patch Changes
e7795c3
Thanks @wellyshen! - Fix(useFormState): correct the URL of warnings
v0.0.122
- Feat: new useFormState hook to help you improve performance by isolating re-rendering at the component level
v0.0.121
Patch Changes
cc3eb6c
Thanks @wellyshen! - Feat(useForm): allowfalse
type for the return value of the validate option
v0.0.120
Patch Changes
090f275
Thanks @wellyshen! - Refactor(useForm): do not unset subscribed state for conditional component