diff --git a/src/FieldArray.js b/src/FieldArray.js index 2080b8e..23a1ed2 100644 --- a/src/FieldArray.js +++ b/src/FieldArray.js @@ -189,6 +189,7 @@ class FieldArray extends React.Component { length, active, dirty, + dirtySinceLastSubmit, error, initial, invalid, @@ -200,10 +201,12 @@ class FieldArray extends React.Component { valid, visited, ...fieldStateFunctions - } = this.state.state || {} + } = + this.state.state || {} const meta = { active, dirty, + dirtySinceLastSubmit, error, initial, invalid, diff --git a/src/index.d.ts b/src/index.d.ts index 94d11aa..47ceb58 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -22,6 +22,7 @@ export interface FieldArrayRenderProps { // TODO: Make a diff of `FieldState` without all the functions active: boolean dirty: boolean + dirtySinceLastSubmit: boolean error: boolean initial: boolean invalid: boolean diff --git a/src/types.js.flow b/src/types.js.flow index 08b56c9..2a68c73 100644 --- a/src/types.js.flow +++ b/src/types.js.flow @@ -20,6 +20,7 @@ export type FieldArrayRenderProps = { // TODO: Make a diff of `FieldState` without all the functions active: boolean, dirty: boolean, + dirtySinceLastSubmit: boolean, error: boolean, initial: boolean, invalid: boolean,