IndexedDB doesn’t have any observer support. This could normally be implemented by the needed website (or third party) as a wrapper around the database. However, IDB spans browsing contexts (tabs, workers, etc), and implementing a javascript wrapper that supports all of the needed features would be very difficult and performance optimization of the features would be impossible.
Use cases for observers include:
- Updating the UI from database changes (data binding).
- Syncing local state from background worker (like a ServiceWorker) or another tab making changes.
- Serializing changes for network communication.
- Simplified application logic.