AsyncStorage not working frequently
See original GitHub issueEnvironment
Environment: OS: Linux 4.4 Node: 6.14.1 Yarn: Not Found npm: 3.10.10 Watchman: 4.7.0 Xcode: N/A Android Studio: Not Found
Packages: (wanted => installed) react: ^16.3.0-alpha.1 => 16.4.1 react-native: 0.54.4 => 0.54.4
Description
In our app we use AsyncStorage API. But there is a problem occur. The problem is from the first time this API is working fine. But after some time response is not coming from AsyncStorage and also not showing any error message, basically AsynStorage totally stopped working. This is happens frequently. Don’t know why this is happen. Is there any promise issue or anything else? This is happens both in ios and android. We build in release mode in ios but still getting issue frequently.
Reproducible Demo
My code is below. When the issue occur then we can’t get any console.log in between AsyncStorage.multiGet. Also not showing any err log also.
AsyncStorage.multiGet(keys, (err, stores) => {
console.log(err);
console.log(stores);
});
Anyone please suggest any solution, Why this is happen!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
@OtacilioN We do a release build in iOS but we are getting the issue for AsyncStorage. And in debug mode when AsyncStorage not working then after closing remote debugger still not working. It’s working again when we close the app and re-open the APP. Why this is happening can you tell me? And what is the solution can you suggest for me?
@kelset I know it’s a duplicate issue, but in the previous issue, there is too much conversation so I can’t post any comment. That’s why I create a new one.
We have a big problem with AsyncStorage in release build also, it’s so urgent. Can anyone one suggest any solution?
Yes this really looks like it’s a duplicate of #14101. I’ll close this until there are enough evidences that the two are different issues.