I have a LazyColumn that, when the page loads, mus...
# compose
p
I have a LazyColumn that, when the page loads, must be initialised to have a particular item on top, so I do
Copy code
val listState = rememberLazyListState()

LaunchedEffect(itemIdx) {
  coroutineScope.launch {
    listState.scrollToItem(itemIdx)
  }
}
But this has a rather jarring effect, in that you see the thing scroll to position - what I want is for it just to be there ready when the page opens
a
there is a param to pass to rememberLazyListState() function for such cases