Skip to content

useFieldArray reactivity when removing fields #3980

Answered by logaretm
jhrr asked this question in Q&A
Discussion options

You must be logged in to vote

Seems to work fine if I use the data name for the fields instead of fields. In the useFieldArray you are declaring data as the iterable while having fields as the iterable in the template so they won't be synced when doing array mutations.

https://codesandbox.io/s/jolly-nobel-edfr5m

Can you confirm if that's the issue or not?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jhrr
Comment options

@logaretm
Comment options

Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants