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
The is an issue when the list is coming from the API/Database, and takes 1 screen recomposition to update the state, and therefore the list itself. By that time the sreen already recomposed and the index value is 0 due to the empty list in the first screen composition.. In this case, the items will appear on the screen but, when we try to move an item this error occours: (java.lang.IndexOutOfBoundsException: Index: 6, Size: 0 at java.util.ArrayList.remove(ArrayList.java:503). The rememberReorderableLazyListState does not provide a way to be updated when the list is updated. Is there a way to achieve or fix this issue?
The text was updated successfully, but these errors were encountered:
jzamith-bliss
changed the title
rememberReorderableLazyListState does not update when suign dynamic list
RememberReorderableLazyListState does not update when suign dynamic list
Jun 22, 2023
jzamith-bliss
changed the title
RememberReorderableLazyListState does not update when suign dynamic list
RememberReorderableLazyListState does not update when using a dynamic list
Jun 22, 2023
I have the same problem, after adding or removing items from the list. the reorder doesn't work. need to close and reopen the screen to be able to drag the items.
The is an issue when the list is coming from the API/Database, and takes 1 screen recomposition to update the state, and therefore the list itself. By that time the sreen already recomposed and the index value is 0 due to the empty list in the first screen composition.. In this case, the items will appear on the screen but, when we try to move an item this error occours: (java.lang.IndexOutOfBoundsException: Index: 6, Size: 0 at java.util.ArrayList.remove(ArrayList.java:503). The rememberReorderableLazyListState does not provide a way to be updated when the list is updated. Is there a way to achieve or fix this issue?
The text was updated successfully, but these errors were encountered: