Releases: final-form/react-final-form-arrays
Releases · final-form/react-final-form-arrays
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
TypeScript Features
Similar to [email protected]
, you can now specify the type of the objects in your array.
<FieldArray<{ firstName: string, lastName: string }> name="clients">{({fields}) => {
// ...
// fields.push({ firstName: 'Erik', lastName: 'Rasmussen' }) is strongly typed
}}</FieldArray>
Bug Fixes
v3.0.0
🎉 HOOKS!! 🎣
New Features
- New
useFieldArray
hook that contains all of the internals of theFieldArray
component.
Type Fixes
- Added missing
update
function to TS definition forFieldArrayRenderProps
#76
⚠️ Breaking Changes ⚠️
- You will need upgrade your dependencies:
react
:^16.8.0
react-final-form
:^6.0.0
final-form
:^4.13.0
- A new default
isEqual
function was added, so if you were, for some reason, relying ondirty
always beingfalse
when noisEqual
function was provided, your code might break. The new default function performs an===
check on all the elements of the array. If you need deeper equality checks, that's up to you to provide.