Skip to content

AsyncStorage not working frequently #19949

@MSSPL-PiyaleeMaiti

Description

@MSSPL-PiyaleeMaiti

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.

AsyncStorage.multiGet(keys, (err, stores) => {
       console.log(err);
       console.log(stores);
      });

Anyone please suggest any solution, Why this is happen!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions