Is this just with LazyColumn or does it happen for other state?
k
Kaustubh Patange
06/15/2021, 5:30 PM
Not sure but
LazyColumn
internally uses
rememberSaveable
for
rememberLazyListState
. So it must happen for others as well.
t
tad
06/15/2021, 5:32 PM
It also has issues with restoring scroll state depending on how the items are populated, so I would try to make a minimal example using SaveableStateHolder directly
k
Kaustubh Patange
06/15/2021, 5:34 PM
The example I attached in the sample project is statically populating
LazyColumn
through a defined list of items. There are only ~20 items & are single line text.