Skip to content

Is that possible to pass additional values from useForm validators to onSubmit? #1345

Discussion options

You must be logged in to vote

Validators are only returning the error (if any) so there isn't any built in way to flow data from validator to onSubmit. Probably a useRef to store that data might be dirty but does what you need.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Choco-milk-for-u
Comment options

@Balastrong
Comment options

Answer selected by Choco-milk-for-u
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