Skip to content
Discussion options

You must be logged in to vote

@pyramid-scheme-ceo

react-hook-form v7 is targeting on field level handling while your field name is still using object data and it polluted the field array object (your items.$index will be overridden by items.$index.questions.$index.

Just use directly field name item.$index.name and item.$index.questions.$index.name will solve the issue.

Working demo: https://codesandbox.io/s/naughty-christian-ltg39g?file=/src/App.tsx

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pyramid-scheme-ceo
Comment options

@pyramid-scheme-ceo
Comment options

Answer selected by pyramid-scheme-ceo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #10774 on August 20, 2023 03:53.