State not changing on first submit but works after second submit #11739
Unanswered
aagatsharma
asked this question in
Q&A
Replies: 1 comment
-
I am having the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When i click the submit button it validates the fields and when putting console.log inside if else statement it logs but the state doesnot get update on 1st try, but works after that.
Beta Was this translation helpful? Give feedback.
All reactions