T
TanStack2mo ago
other-emerald

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
evident-indigo2mo ago
There is, but it‘s generally discouraged. It should be done from within validators instead (for example validators.onSubmitAsync)

Did you find this page helpful?