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
I fixed it by simply wrapping my call in an exception handler like this:
(try (local-storage (atom {}) :db) (catch js/Error e (atom {})))))
I'm happy to do the legwork for a patch that fixes this if that would be helpful, probably by adding a similar try/catch to the StorageBackend deftype items.
The text was updated successfully, but these errors were encountered:
When running on iOS (tested across multiple devices), storage-atom crashes when initializing an atom. Something as simple as this line will crash:
(local-storage (atom {}) :db)
With the exception:
QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.
Related Stack Overflow question:
http://stackoverflow.com/questions/14555347/html5-localstorage-error-with-safari-quota-exceeded-err-dom-exception-22-an
I fixed it by simply wrapping my call in an exception handler like this:
(try (local-storage (atom {}) :db) (catch js/Error e (atom {})))))
I'm happy to do the legwork for a patch that fixes this if that would be helpful, probably by adding a similar try/catch to the StorageBackend deftype items.
The text was updated successfully, but these errors were encountered: