Closed carlos-gn closed 1 year ago
Also get fixed when i change the id in the useFormContext
Ok, the error starts when i use defaultValues.
defaultValues={{
providers: [],
medicalHistoryNumber: "",
division: "",
doctor: "",
date: new Date(),
comments: "",
surgeryPartFile: "",
}}
Solved. Cannot pass new Date() as default value.
Which packages are impacted?
remix-validated-form
@remix-validated-form/with-zod
@remix-validated-form/with-yup
zod-form-data
What version of these packages are you using?
Please provide a link to a minimal reproduction of the issue.
Can't provide an example.
Steps to Reproduce the Bug or Issue
No idea. I was changing a form a started to have this error:
It get fixed when i change the id of the form:
Expected behavior
I expected it to work, does not make sense that it get fixed when i change the id form, seems like the form gets cached or something and the store fails.
Screenshots or Videos
No response
Platform
Additional context
No response