Save and retain LazyColumn scroll position while using Paging 3
I am using the Paging 3 Library with Lazy Column and a BottomNavigation Menu in my Activity. Each Composable Screen attached to the BottomNavMenu uses a Composable that in turn uses Lazy Columns. When I navigate between the Composables using the compose navigation library I want the recomposed composable to retain the scroll position and the lazyListState
I have tried the following but doesn't work:
val listState = rememberLazyListState()
val scrollState = rememberScrollState()
LazyColumn(...