diff --git a/packages/core/src/createStorage.ts b/packages/core/src/createStorage.ts index 0f92e0f074..3056ae7774 100644 --- a/packages/core/src/createStorage.ts +++ b/packages/core/src/createStorage.ts @@ -97,7 +97,12 @@ export function getDefaultStorage() { })() return { getItem: storage.getItem, - removeItem: storage.removeItem, + removeItem(key) { + try { + storage.removeItem(key); + // silence errors by default (QuotaExceededError, SecurityError, etc.) + } catch {} + }, setItem(key, value) { try { storage.setItem(key, value)