-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue: Usage of useController
hook, change isDirty
state for form to true.
#10143
Comments
expected behaviour as your |
@bluebill1049 Why |
@bluebill1049 And why |
Please don't tag me twice, I have loads of notifications try to keep up to date.
because input gets register at render.
This something we can improve. |
Thnks, sorry for tags :) |
Don't you think |
|
So you think different behaviour is ok? |
It would be best if you always considered providing the entire default state for your entire form. In fact, this has been listed in the formState isDirty section: https://react-hook-form.com/api/useform/formstate/ |
That's unless we remove all the inline |
Spend some time with this issue, I am going to keep it as it is for now as mark it as a design limitation. Yes, in hook form |
Version Number
7.43.7
Codesandbox/Expo snack
https://codesandbox.io/s/react-hook-form-get-started-forked-d470cp?file=/src/index.js:239-246
Steps to reproduce
isDirty
as false and second - true.Expected behaviour
Initial render shouldn't change
isDirty
for form.What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: