Livedata Observer Is Triggered During Runintransaction() In Room Database
I use runInTransaction() on my Room database where I update several different tables. I have LiveData observers on those tables that update the UI. What happens is that the observe
Solution 1:
I found the problem. I have two databases. And used the wrong one to call runInTransaction(). The outcome was that everytime I did update or insert it checked if its database was in a transaction and as the wrong database was in a transaction it always triggered the LiveData observer.
Post a Comment for "Livedata Observer Is Triggered During Runintransaction() In Room Database"