Error question
I just started playing with Tanstack Form today and I have been a full time react-hook-form user for the past several years. With that library, I’ll use the form.setErrors(‘root’) property to set a custom form error message or a message returned from the server. Is there similar functionality in Tanstack Form?
1 Reply
evident-indigo•2mo ago
There is, but it‘s generally discouraged. It should be done from within validators instead (for example
validators.onSubmitAsync
)