Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48978

Failed to execute 'setItem' on 'Storage'

$
0
0

Hello. I get this error:

Unhandled Rejection (QuotaExceededError): Failed to execute ‘setItem’ on ‘Storage’: Setting the value of ‘_cap_UltimosProveedores’ exceeded the quota.

this is how setItem is implemented:

export async function setItem(key: string, value: any) {
  await Storage.set({
    key: key,
    value: value
  });
}

Is there a way to avoid this error and clean what is in the local storage when the limit is reached?

Regarding LocalStorage size: There is a way to avoid it? or there is a way to increase it to x size? or there

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>