https://kotlinlang.org logo
Title
a

Ahmed Shehata

07/06/2022, 1:20 PM
Hi everyone, I have a notification list like this All I need is: When user clicks any item that has a blue dot , it should be hidden without making any refresh call to my API again. I use compose and paging3 compose so I need to update a single object in the paging source easily.
c

Creep Toe

07/06/2022, 4:05 PM
This is exactly why we had to migrate from paging3 to custom solution.
a

Ahmed Shehata

07/06/2022, 5:07 PM
Where is this solution?
m

myanmarking

07/08/2022, 2:03 PM
so you need to collapse the item onClick. With paging that is tricky. I would suggest you keep a list of collapsed items independent from the data. that way, you can collapse/expand