We're getting close now! I'm keeping this as alpha
still, because it's not yet a feature-complete upgrade from v5
. But redux-form
v6
is very stable and solid. Personally, I would use it in production, but because it's not "done" yet, I must mark it as "pre-release".
- Prevented
RESET
andINITIALIZE
from destroying registered fields. #1040 - Added
removeAll()
andmove()
to array actions. #822 #1095 - Workaround for splice error #1082
number
andrange
inputs will now have numeric values. #1100 Possible breaking change?- Allowed you to pass additional props to
Field
andFieldArray
via aprops
prop. Apparently this is useful for TypeScript people. #1078 #1066 - Provided reference to wrapped form component. Useful for testing. #1101 #1081
- Fixed bug where all fields weren't being marked
touched
on submit. #1102 #1043 - Implemented
plugin()
feature fromv5
. Works pretty much the same, except that theredux-form
state shape has changed. Refer to the Migration Guide. - Better Instance API docs
New Example
- Added example for using
redux-form
withreact-widgets
. It's pretty trivial.
Breaking Change
- After a pseudo-democratic vote, it was decided that the pseudo-array object that
FieldArray
generates should be in a separate prop, calledfields
.
v6.0.0-alpha.14
const renderWidgets = fields =>
fields.map(field => <Field name={field} component="input"/>)
...
<FieldArray name="widgets" component={renderWidgets}/>
v6.0.0-alpha.15
const renderWidgets = props =>
props.fields.map(field => <Field name={field} component="input"/>)
...
<FieldArray name="widgets" component={renderWidgets}/>