Skip to content

v6.1.0

Compare
Choose a tag to compare
@erikras erikras released this 11 Jun 08:17
· 175 commits to master since this release
v6.1.0

New Features

  • Allowed swappable final-form APIs #520
  • 馃挜 Strongly typed form values for Flow and Typescript 馃挜 #516

Usage:

import { withTypes, Field } from 'react-final-form'

type MyValues = {
  email: string,
  password: string
}
const { Form } = withTypes<MyValues>()

<Form onSubmit={onSubmit}>
   {({ handleSubmit, values }) => {
     // values are of type MyValues
   }}
</Form>

Edit Strongly Typed Form Values with 馃弫 React Final Form

Housekeeping

  • Remove context export #515
  • Simplify slightly logic around keeping latest value in ref #513

v6.0.1...v6.1.0