Skip to content

v3.1.0

Compare
Choose a tag to compare
@erikras erikras released this 14 Jun 14:27
· 29 commits to master since this release
v3.1.0

TypeScript Features

  • Added tsx generic typing for FieldArray (#88) 90c340a

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

  • export useFieldArray #89 #86

v3.0.0...v3.1.0