Skip to content
Discussion options

You must be logged in to vote

OK, I've not looked at the handleSubmit source code in a while 🤦

The state's being updated at the end of the handleSubmit execution, so you won't get formState update until after the submission process has ended.

The formState is going to be up to date at the time of the next component render due to the excision order.

I think it's going to be one of those "API design limitation". @bluebill1049, correct me of I'm wrong.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bluebill1049
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #10818 on August 22, 2023 05:19.