Rodri Represa
06/11/2021, 12:54 PMmutableListOf<Int>
to track my calendar days which are selected in a period of time and then fill the square Grey.
When I select a new period of time, I first empty the mutableListOf and later I save on it my new days in order to react and show the Grey square animation.
The problem is that when I empty the mutableListOf and quickly select a new period of time, as you see in the beginning of the video, it seems that the mutableList has my old dates on cache? and then only the new days added to the period of time react to the change (the old dates animation doesn't trigger, you just see the square filled).
However if I select a new date, and wait some seconds to select the endDay, my animation is triggered in all the days, because the mutableListOf doesn't have any data saved.Lukasz Burcon
06/11/2021, 1:10 PMRodri Represa
06/11/2021, 1:55 PMZach Klippenstein (he/him) [MOD]
06/11/2021, 2:50 PMmutableStateListOf
or a mutableStateOf
an immutable list.