Vincent tiensi
11/15/2020, 10:24 PMfun <T> VerticalListingComponent(
itemList: List<T>,
loading: Boolean,
loadNextPage: () -> Unit
)
and am calling it through this
VerticalListingComponent(
itemList = itemListingState.listings,
loading = itemListingState.loading,
{}
)
When I update the itemListingState the VerticalListingComponent seems to be consuming and displaying the new itemList properly, but it seems to be ignoring the loading boolean that I’m passing (I have a loading indicator that shows when loading = true). Does anyone know what I’m doing wrong?Timo Drick
11/16/2020, 1:23 AM