Skip to content

v2.6.0

Compare
Choose a tag to compare
@chawes13 chawes13 released this 15 Feb 22:40
· 48 commits to master since this release

Minor upgrade:

  • Added original error to meta.error property of the wrapped SubmissionError. This will be accessible to developers in the third argument of redux-form's onSubmitFail
// Example
<Form
  onSubmitFail={(errors, dispatch, submitError, props) => {
    if (submitError.meta.error.status === 404) return console.error('Not found')
    console.error(errors.message)
  }
/>