[FEAT] Have a clear way to propagate errors to forms
See original GitHub issueI want to be able to provide the form component with the server returned errors in an easy manner
Describe the solution you’d like
I’d imagine a parseErrors
, transformErrors
, processErrors
method I could supply useForm
that would receive the response object and would use the return value (probably an object of structure `{ fieldName: errorText[]} mapping) to set the form errors,
Describe alternatives you’ve considered
currently doing it manually using onMutationError
, and handling the error object on my own. which doesn’t allow me to use setError
since it’s a return value of useForm
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Guide to Uncertainty Propagation and Error Analysis
The final step is to propagate error for each step. To do so, we'll need some special formulas that tell us how this...
Read more >What does "propagate" mean in Swift? - Apple Developer
It just means to transmit, or pass on. But let's not get stuck on the meaning of the word. The quote talks about...
Read more >Error Handling in Swift - AndyBargh.com
Let's start by looking at how to propagate errors. Propagating Errors. Error Propagation with throws. In Swift, whether or not a function can ......
Read more >How to Report Errors in Forms: 10 Design Guidelines
These guidelines need little explanation: first, if users don't know that there is a problem with their input, they won't be able to...
Read more >Notes on the use of propagation of error formulas
The subject of the propagation of errors, on the contrary, is a purely mathematical matter, with very definite and easily ascertained conclusions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@banuni I use something like this
Hey, We’ve released
@pankod/refine-core@3.46.0
👊