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
Like RN docs says, It is recommended that you use an abstraction on top of AsyncStorage instead of AsyncStorage directly for anything more than light usage since it operates globally.
So in other words, the best practice here is to create an abstraction over Async Storage. You can create a queue-like implementation, where you can make sure that your calls are processed "synchronously".
Regarding error message:
After disabling the concurrent calls a proper error surfaced saying that the database/system is out of memory.
Current behavior
setItem
with a large data object cause app to crash with no visible error, resulting in corrupted memory and loss of data.best practice
doc but...Expected behavior
should surface proper errors such as
max size exceeded
,concurrent write exception
etc.Repro steps
setItem
to set a large amount of data on a single item.setItem
from different places at the same time.adb
path runadb logcat -v time
libc
after app crashes:setItem
should throw an error with code13
- database out of memoryEnvironment
Stack Trace
The text was updated successfully, but these errors were encountered: