Lucien Guimaraes
02/23/2023, 1:52 PMLaunchedEffect(dataList) {
lazyListState.scrollToItem(0)
}
Because the coroutine will be cancelled when the LaunchedEffect leaves the composition, this will be triggered if I navigate back to the view.
Thanks!Albert Chang
02/23/2023, 2:52 PMval lazyListState = key(dataList) { rememberLazyListState() }
.Lucien Guimaraes
02/23/2023, 4:42 PM