useFieldArray: calling remove
from within the item that should be removed
#11116
Unanswered
marvinderksen
asked this question in
Q&A
Replies: 0 comments
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 there,
is
remove
ofuseFieldArray
not supposed to be called from within the item that is to be removed? Even in a minimal reproduction where let's say we render a list and the list item gets its own component. When I callremove
from within that list item component I can reproduce:Is this behavior by design? What am I missing? I did read & implement according to the docs. So just a quick question :)
Lemme know if I should provide the minimal reproduction. See ya
Beta Was this translation helpful? Give feedback.
All reactions