Skip to content

How to Handle Errors for ActionForm #673

Answered by gbj
jeorb asked this question in Q&A
Discussion options

You must be logged in to vote

Yep so there are a handful of different things here:

  1. We let you pass an error signal into a <Form/> but not an <ActionForm/>, which will hold any errors that come up during the actual submission process... I should probably add that to <ActionForm/> too.
  2. The lines you quote are a little misleading as they're actually on the resource reading the current user — the error should probably be something like "Error getting user info." This would come up if, for example, the network request to the server to get the latest user data failed because you went offline.
  3. For error handling with an actual form you can check the .value() of the action you're giving to the <ActionForm/>. .value() returns…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeorb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants