How can I remove the flow observer for room DB? Basically, my use case is
In my application, I have a dropdown of contentIds and I'm trying to fetch the flowable list of data from the room database based on the ID, and parallelly my table is updating their record. It works fine until I don't select the another ID from the dropdown but when I select the different ID then it returns me the data of both the IDs(previous selected & current selected). I want the flowable data only for the current one.
How can I achieve this?
01/31/2023, 11:52 AM
StateFlow returning old and new data?
What if you select the third id?