observe Dashboard Changes
Observe dashboard route changes for real-time UI updates.
This flow emits events when dashboard routes change during background synchronization, allowing UI to reactively update when route data changes in the cache.
Event Types:
RoutesUpdated: Emitted when routes are inserted, updated, or deleted during background sync. Contains the complete updated route list for immediate UI rendering.
NewUpdatesAvailable: Emitted when sync status changes (e.g., FULL ↔ PARTIAL) but no route data changed. Signals that consumers should refetch to get updated pagination/status info.
Offline-First Behavior:
Only emits during background sync operations, not during initial fetches
Events reflect changes to cached data from server synchronization
No filtering by date - emits all dashboard changes
Return
Flow of dashboard route update events