```val scrollState = rememberLazyListState() val l...
# compose
s
Copy code
val scrollState = rememberLazyListState()
val lazyInsuranceItems = pager.collectAsLazyPagingItems()
LazyColumn(state = scrollState) {
    itemsIndexed(lazyInsuranceItems) { index,insurance ->
        InsuranceCell(insurance!!) {
            navController.navigate("InsuranceDetail/${insurance.id}")
        }
    } }
Trying to create list and detail screens as above but on returing to list the scroll position is lost and returns to top. Can anyone guide me on how to maintain scroll position?
z
hm, might be related to this?
👍 1