You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, I want to show a warning message to users when the storage quota for my app is exceeded. Catching the error QuotaExceededError on every write operations (caches.open, cache.put, etc) is quite painful. How can I handle it globally? Or is there any better approach for this situation?
The text was updated successfully, but these errors were encountered:
What's painful about it? Give that there may be other reasons for storage methods to fail, would we be saving much by having a global event for this?
I'm not sure about others. But my app was designed to use Cache API as a replacement for browser cache. So I use it pretty much everywhere in my app. Catching errors of every single write operations is quite painful to me. I actually expect a global event fired when the storage quota is exceeded, so that I can show some recommendations to users.
Basically, I want to show a warning message to users when the storage quota for my app is exceeded. Catching the error
QuotaExceededError
on every write operations (caches.open
,cache.put
, etc) is quite painful. How can I handle it globally? Or is there any better approach for this situation?The text was updated successfully, but these errors were encountered: