Mini
02/01/2023, 9:35 AMLazyPagingItems<T>
, but now I wonder how to preview/screenshot test this composable as I cannot instantiate LazyPagingItems
. What would be the best approach to solve this?
One approach I can think of would be slotting the items composable, along the lines of
items: LazyListScope.(@Composable (MyType) -> Unit) -> Unit,
and using items<List>(myTestItems)
for tests and previews and using items<LazyPagingItems<T>>(myPagedItems)
for real implementation. That does not feel great thoPagingData.from(myList)