Skip to content

Commit 682aaef

Browse files
authored
Upgraded to final-form v2 (#71)
* Upgraded to final-form v2 * Upgraded deps * Doc'd changes
1 parent a7ada1c commit 682aaef

File tree

6 files changed

+712
-314
lines changed

6 files changed

+712
-314
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,12 @@ const MyForm = () => (
135135
* [`allowNull?: boolean`](#allownull-boolean)
136136
* [`children?: ((props: FieldRenderProps) => React.Node) | React.Node`](#children-props-fieldrenderprops--reactnode--reactnode)
137137
* [`component?: React.ComponentType<FieldRenderProps>`](#component-reactcomponenttypefieldrenderprops)
138+
* [`isEqual?: (a: any, b: any) => boolean`](#isequal-a-any-b-any--boolean)
138139
* [`name: string`](#name-string)
139140
* [`render?: (props: FieldRenderProps) => React.Node`](#render-props-fieldrenderprops--reactnode)
140141
* [`subscription?: FieldSubscription`](#subscription-fieldsubscription)
141142
* [`validate?: (value: ?any, allValues: Object) => ?any`](#validate-value-any-allvalues-object--any)
143+
* [`validateFields?: string[]`](#validatefields-string)
142144
* [`value?: any`](#value-any)
143145
* [`FieldRenderProps`](#fieldrenderprops)
144146
* [`input.name: string`](#inputname-string)
@@ -343,6 +345,10 @@ as any non-API props passed into the `<Field/>` component.
343345
A component that is given [`FieldRenderProps`](#fieldrenderprops) as props, as
344346
well as any non-API props passed into the `<Field/>` component.
345347

348+
#### `isEqual?: (a: any, b: any) => boolean`
349+
350+
[See the 🏁 Final Form docs on `isEqual`](https://github.com/final-form/final-form#isequal-a-any-b-any--boolean).
351+
346352
#### `name: string`
347353

348354
The name of your field.
@@ -366,6 +372,10 @@ _all_ of [`FieldState`](https://github.com/final-form/final-form#fieldstate).
366372
A function that takes the field value, and all the values of the form and
367373
returns an error if the value is invalid, or `undefined` if the value is valid.
368374

375+
#### `validateFields?: string[]`
376+
377+
[See the 🏁 Final Form docs on `validateFields`](https://github.com/final-form/final-form#validatefields-string).
378+
369379
#### `value?: any`
370380

371381
**This is only used for radio buttons!** The value of the radio button. The
@@ -551,8 +561,7 @@ A function to focus (mark active) any field.
551561

552562
#### `handleSubmit: (SyntheticEvent<HTMLFormElement>) => void`
553563

554-
A function intended for you to give directly to the `<form>` tag: `<form
555-
onSubmit={handleSubmit}/>`.
564+
A function intended for you to give directly to the `<form>` tag: `<form onSubmit={handleSubmit}/>`.
556565

557566
#### `initialize: (values: Object) => void`
558567

0 commit comments

Comments
 (0)