https://kotlinlang.org logo
#compose
Title
# compose
w

wasyl

10/22/2019, 9:56 AM
Another question: when I’m quickly adding items to a
ModelList
, they are being added out of order, that is when I add items slowly I have e.g.
1, 2, 3, 4, 5
. But when I click button to add them fast, I end up with
0, 4, 3, 2, 1
. Even when I try explicitly adding the item at position
list.size
. The same happens for an immutable list. Is this because mutating the state doesn’t guarantee order of the mutation? Is there any way actually have the changes applied in order?
a

Andrey Kulikov

10/22/2019, 10:39 AM
it definitely doesn't seem like intended behavior, could you please create a bug with the sample code?
w

wasyl

10/22/2019, 11:59 AM
this is how it looks like btw
And it looks like it’s only present when I add a checkbox, for some reason
2 Views