[Bug]: Inconsistency when updating a nested value with useField
vs useFieldArray
#360
Open
2 of 4 tasks
Labels
bug
Something isn't working
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.
https://codesandbox.io/p/devbox/958zwp?file=%2Fapp%2Froutes%2Findex.tsx%3A1%2C1-90%2C1
Steps to Reproduce the Bug or Issue
options.[0].values[0].name
on the screen does not update to reflect the changes made in the input field.options.[0].values[0].name
on the screen update correctly withDate.now()
, indicating they are connected.Expected behavior
I would expect that
useField
or evenuseControlField
would be able to change a deep nested value and changes to it be reactive on any consumer of the form state (useFieldArray
in this case)Screenshots or Videos
Screen.Recording.2024-04-05.at.17.11.16.mov
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: