<How to Collect Paging Data in UI?> I am fetching ...
# stackoverflow
r
How to Collect Paging Data in UI? I am fetching data from the Room database using Paging in compose. And collecting it in UI using collectAsLazyPagingItems(). and displaying that data on Google Maps using markers. @Composable fun MapMarkers( mapViewModel: MapVM ) { val mapDataList = mapViewModel.mapData.collectAsLazyPagingItems() val markers = mapDataList.itemSnapshotList.items markers.forEach { MapMarker( it.data, it.position ) } } Is this the correct way to display...