-
I have a regular useForm with schema validation and a lot of fields with defineFields.
so that the initalValue is not the same as the currentValue.
I have no idea why it is setting the initial value 6 times when I only have useForm initialization and one resetForm. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok found the error after checking the validation schema. I had a placeholder for that value like |
Beta Was this translation helpful? Give feedback.
Ok found the error after checking the validation schema. I had a placeholder for that value like
z.object({})
that did show up as empty in the inital values which is probably true if parsed but later the object works as is and it shows as valid but also as dirty.after fixing the schema it shows up correctly as valid and not diry