chrisglein / react-native-github-dashboard

0 stars 1 forks source link

If cache fails to save due to quota, cache will never empty without manual intervention #46

Open chrisglein opened 4 years ago

chrisglein commented 4 years ago
Handling query results for microsoft/react-native-windows#14
Query.js?e960:1 Error caching value for microsoft/react-native-windows#14
Query.js?e960:1 DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'microsoft/react-native-windows#14' exceeded the quota.
    at eval (webpack-internal:///./node_modules/@react-native-community/async-storage/lib/module/AsyncStorage.js:1:1953)
    at eval (webpack-internal:///./node_modules/@react-native-community/async-storage/lib/module/AsyncStorage.js:1:1115)
    at new Promise (<anonymous>)
    at createPromise (webpack-internal:///./node_modules/@react-native-community/async-storage/lib/module/AsyncStorage.js:1:1064)
    at Function.setItem (webpack-internal:///./node_modules/@react-native-community/async-storage/lib/module/AsyncStorage.js:1:1908)
    at XMLHttpRequest.request.onload (webpack-internal:///./src/Query.js:1:8441)
chrisglein commented 2 years ago

Note that this happens pretty quickly with the default set. I'm implementing a change to reduce the size of the cached data until this is fixed.