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 was able to determine this when I noticed some of my items were coming back undefined. If I used AsyncStorage.getItem, then I correctly saw why the item was coming back undefined: Cursor Window: Window is full (the item I was trying to retrieve was greater than 1MB, which seems to be the limit.)
But when using multiGet, the operation would fail silently.
In https://github.com/react-native-community/react-native-async-storage/blob/608e2d80cd4a8aa3dbb2f7c08fb317ce4a180344/lib/AsyncStorage.js#L226
errors
is ignored, and does not propagate up to caller.I was able to determine this when I noticed some of my items were coming back undefined. If I used
AsyncStorage.getItem
, then I correctly saw why the item was coming back undefined:Cursor Window: Window is full
(the item I was trying to retrieve was greater than 1MB, which seems to be the limit.)But when using
multiGet
, the operation would fail silently.One solution would be to
reject
iferrors
:The current implementation resolves indiscriminately:
https://github.com/react-native-community/react-native-async-storage/blob/608e2d80cd4a8aa3dbb2f7c08fb317ce4a180344/lib/AsyncStorage.js#L244
@react-native-community/async-storage 1.4.0
The text was updated successfully, but these errors were encountered: