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
I'm handling an array of entities, and I have a remove button on each entity row, so for example, when I have 3 rows I can remove the middle one, and so on.
What's going on is that when I dispatch a RemoveArray action it's indeed updating the ID of the subsequents items, but not the id of their inner controls.
simple example is below:
3 items on array, with nested fields of Name & Surname
Ciao Wolfz :)
I'm handling an array of entities, and I have a remove button on each entity row, so for example, when I have 3 rows I can remove the middle one, and so on.
What's going on is that when I dispatch a RemoveArray action it's indeed updating the ID of the subsequents items, but not the id of their inner controls.
simple example is below:
3 items on array, with nested fields of Name & Surname
we now remove ITEM1 with a Remove_Array action from the library, ITEM2 gets correctly renamed to ITEM1, but the nested fields remains the same.
we now add a 3rd item, it's get ITEM2, and the nested fields? guess it..
This situation now leads to duplicated data, because when I modify Name on ITEM1 also modifies the one in ITEM2.
Regards,
Luca
The text was updated successfully, but these errors were encountered: