If a user opens multiple instances of a web app in multiple tabs, any instance can be notified of changes to localStorage
that any other instance makes by registering a storage
event listener. A tab receiving such a notification might then react and e.g. update the UI according to the changes.
Indexed DB doesn't seem to offer a similarly convenient mechanism for such notifications. Would one have to use localStorage
to "send" a notification to other tabs whenever making changes to Indexed DB? The only other alternative might be polling, which is clearly inferior to storage
events.