Replies: 1 comment 1 reply
-
Did you manage to fix this or maybe any workaround? I'm having this same problem and I don't know how to fix it. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
in my application I have a complex form structure or more like multiple not too complex forms on different tabs and so on.
After submitting one of the forms:
display: none
)When you press the "Edit" button afterwards:
values
parameter ofuseForm
, which works fine for "normal" form fields likematerialName
in the example. On the other hand the field-array does not get thevalues
. When you press theAppend layer
button a new layer is added, but also the layer from thevalues
is finally shown before the new layer. I noticed that the whole form is rendered twice: First with thedefaultValues
and then with thevalues
.CSB example: https://codesandbox.io/p/sandbox/youthful-forest-45pv2d?file=%2Fsrc%2FApp.tsx%3A9%2C12
I am unsure if this is related to #12049.
Is this a bug or working as intended, and if so how can I achieve my goal, that the array fields are shown after clicking the
Edit
button or in the example case on initial render?I hope someone can shed some light on this. 🙏🏾
If you need further information I will be happy to provide them.
Beta Was this translation helpful? Give feedback.
All reactions