A common design pattern is to build state into each document type. In an ordering application, orders go through a lifecycle.
When the application starts, the device only wants to synchronize orders that are not filled or canceled and evict any orders that have been completed.
Once an order has been completed, document as “FILLED”. Live queries execute and update the front-page.