Skip to content
Discussion options

You must be logged in to vote

false is the default value for isValid form state. You see it on the first render and after the form has been evaluated, it's set to the correct value (true in your case) on the next render.

From RHF source code:

let _formState = {
  ...
  isValid: false,
  ...
};

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@twawszczak-wr
Comment options

@Moshyfawn
Comment options

@twawszczak-wr
Comment options

@Moshyfawn
Comment options

@twawszczak-wr
Comment options

Answer selected by bluebill1049
Comment options

You must be logged in to vote
1 reply
@victoriomolina
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants