Hi! Sorry I have a dumb question but can’t seem to...
# compose
v
Hi! Sorry I have a dumb question but can’t seem to figure it out. I created a reuseable listing component for pagination here
Copy code
fun <T> VerticalListingComponent(
    itemList: List<T>,
    loading: Boolean,
    loadNextPage: () -> Unit
)
and am calling it through this
Copy code
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?
t
Can you show the code (class definition) for itemListingState please?