-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsyncStorage not working frequently #19949
Comments
Duplicated from #14101 ?? |
@OtacilioN Can you tell me what the problem and why this is happening? |
Are you with the remote debug active? In my case it happens only with the remote debug on, and I don't know exactly why it happens, but the promise just not returns, I am using GraphQL with Apollo and the same happens with my query promises ,when remote debug is on. I think that is a problem with remote debug and not with Async Storage. So if you turn off the remote debug and the error disappear, relax in production it just not happen. It is just annoying in development. |
Yes this really looks like it's a duplicate of #14101. |
@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? |
Environment
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.
Anyone please suggest any solution, Why this is happen!
The text was updated successfully, but these errors were encountered: