Skip to content
Source
Sign inSign up
TanStack/form

Call validate manually #29

Send to my agent
Closeddavidpaulrosser(GitHub profile, opens in a new tab) opened this issue 3 comments

Hi,

I need the ability to call validate manually. Validation happens both locally and server side. If the server responds with errors I need to show them.

Does the api expose a way to call validate?

  1. Currently, no. This would be a great addition though, along with some other promise support being discussed in #28. I'll get to work :)

  2. tannerlinsley added labelshelp wanted

  3. I did a workaround where in componentWillReceiveProps, for each field that had a serverside error, it does this.props.setValue(field, this.props.getValue(field)) which would trigger the validate.

  4. Going to track this with #28

  5. tannerlinsley closed this

Sign in to join this conversation.