Closed andreyevyk closed 4 months ago
not a valid use case, plz refer to the doc.
@bluebill1049 I'm facing a similar issue. Do you mean to say that the field array state is not supposed to be in sync with control by design? Would be helpful if you could expand a bit on it or point to the part of docs you have asked to refer. Thanks :)
@bluebill1049 The usecontroller is not synchronized within a FieldArray, I didn't find this in the documentation, can you explain more?
Bump.
Can you explain why this issue is not valid ?
How am I supposed to update a field from within a FieldArray field ?
Doc mentions update()
method and a classic Controller
one:
<Controller
render={({ field }) => <input {...field} />}
name={`test.${index}.lastName`}
control={control}
/>
Version Number
7.51.5
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/naughty-poitras-m62j7v
Steps to reproduce
Expected behaviour
The controlled Field must updates. Before this commit, the controlled is updated when fields update. Old version sandbox.
This happens due to the use of
exact: true
.What browsers are you seeing the problem on?
Chrome, Edge
Relevant log output
No response
Code of Conduct