Does "defaultValues" have to passed when "values" is used? #11959
Unanswered
stick52593
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using the
values
prop of useForm to update my form with server data. When I provided bothvalues
anddefaultValues
, I noticed thatformState.dirtyFields
returns every single property fromvalues
, and not just the ones that have been modified. When I omitteddefaultValues
, everything worked fine, but is this a good practice?Beta Was this translation helpful? Give feedback.
All reactions