You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And now I would like to move element from items.0.nestedItems.0 to items.1.nestedItems.2. Keep in mind that the list of items are rendered using useFieldArray. How should I do this? When I try to use getValues() and setValue() from form context it does the thing however the fields in useFieldArray() does not update and the view does not rerender. I am using rhf v6.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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,
Lets imagine having form structure similar to this:
And now I would like to move element from
items.0.nestedItems.0
toitems.1.nestedItems.2
. Keep in mind that the list of items are rendered usinguseFieldArray
. How should I do this? When I try to usegetValues()
andsetValue()
from form context it does the thing however thefields
inuseFieldArray()
does not update and the view does not rerender. I am using rhf v6.Beta Was this translation helpful? Give feedback.
All reactions