I’m working on a project using RoomDB (version 2.6.1) where I have a complex query involving GROUP BY and AS statements to create an entity on the fly. It works as expected on most devices, but QA testing on older devices revealed an unexpected behavior:
When collecting the Flow in the collect block, the first emission is almost immediately an empty list, and then the actual list of entities is emitted a few seconds later. This happens even though the database has data ready. The process relies on an action being performed before the items are collected, but the empty initial emission causes incorrect behavior.
Is this expected for observable queries in RoomDB? How can I prevent the empty initial emission?
Thank yoy