Skip to content

useFieldArray with a search filter values in the row are not persisted in v6 #7639

Answered by Moshyfawn
cyrilgeorgemv asked this question in Q&A
Discussion options

You must be logged in to vote

So, here's what I found.

  • Use dot notation over bracket notation to set the name of the localName field <Controller />
<Controller
  name={`data.${i}.localName`}
/>
  • Use RHF version lower than 6.11.0. Due to some change, the behavior you want doesn't work since 6.11.0

See this CSB

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cyrilgeorgemv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants