Does `LazyColumn` not yet keep scroll position aft...
# compose
f
Does
LazyColumn
not yet keep scroll position after config changes or is my setup just wrong?
a
you might need to do something like this:
Copy code
Use rememberSaveable to restore your UI state after an activity or process is recreated. rememberSaveable retains state across recompositions. In addition, rememberSaveable also retains state across activity and process recreation.
c
Also, rememberSaveable wasn't working correctly because of some androidx library alpha05. Try alpha06 which was released yesterday.
f
I'm already using
rememberLazyListState
which uses
rememberSaveable
internally. Still, the scroll position is lost after a rotation
a
I’ve used scaffold with lazy column and then used rememberScaffoldState and that works pretty well to save scroll state https://github.com/abhishekdewan101/Scout/blob/782c088bbd79eab3581560020a9d4b3ccdf7f068/app/src/main/java/com/abhishek101/gamescout/features/main/discover/DiscoverTab.kt#L72
b
afaik There is also a bug where it doesn't save scroll position if there are multiple `item`/`items`