API: watch() function should return not only value but also other field statuses #2570
-
The watch() function currently (version 6.3.1) returns only the value. It maybe better if it can return other field statuses, e.g. dirty, error. What do you think about it? |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Aug 13, 2020
Replies: 1 comment 2 replies
-
Thanks for the suggestion, formState is already optimized, eg: if you are not reading |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
anhquande
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the suggestion, formState is already optimized, eg: if you are not reading
isValid
, all the validation logic will be skipped and extra re-render will be avoided too.