question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Access to submitErrors

See original GitHub issue

I am noticing that when an error is sent through SubmissionError which is not a field, it gets put into a key called submitErrors. This is not accessible via a prop in the form.

Example: image I’d like to access the fullMessages key but i cannot.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
Floriferouscommented, Apr 15, 2018

Is there a reason that submitErrors is not passed in props? I understand there’s a workaround, but it’s not clear to me why most other props can be accessed directly via a prop, but not this one (and a few others of course)?

3reactions
gustavohenkecommented, Dec 23, 2016

You can do this with the getFormSubmitErrors selector:

connect( state => ({
  submitErrors: getFormSubmitErrors( formName )( state )
}))(formComponent);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot display submit errors in redux-form
i'm trying to display submit errors in my form but i cannot figure out why this doesn't work. When i try to submit...
Read more >
Final Form Docs – `FormState`
submitErrors. Object. An object containing all the current submission errors. The shape will match the shape of the form's values.
Read more >
dynamic COM property access throws ... - MSDN
I develop a new LOB SilverLight application which should access local COM object. ... SubmitError(CError pError).
Read more >
What Prompts the Form Submit Errors in Enquire MAP?
What Prompts the Form Submit Errors in Enquire MAP? ... Setting up and Accessing Web Forms in Enquire MAP · How to set...
Read more >
Can't submit errors on Xbox Series X Insiders Beta channel
Can't submit errors on Xbox Series X Insiders Beta channel. Every time I try to creat an error report, ... Native Access 2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found