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
{{ message }}
Repository navigation
RCTAsyncStorage.getAllKey callback does not happen RN 0.31 Android 4.2.2 when debugging #9319
RCTAsyncStorage.getAllKeys(function(error, keys) { line in AsyncStorage.js, getAllKeys method never gets to callback when debugging in chrome.
Also, AsyncStorage.js chooses to use sqlite implementation (at least in the chrome debugger).
I'm also experiencing this issue. It means I haven't been able to use the chrome debugger since upgrading to 0.31. Anyone have any workarounds for now?
@rigdern the bridge is definitely the issue. I modified my MainApplication to call setUseOldBridge(true) in the ReactNativeHost subclass, and I'm now able to use AsyncStorage while debugging on Android with 0.31.0
changed the title [-]RCTAsyncStorage.getAllKey callback does not happen RN 0.31 Android 4.2.2[/-][+]RCTAsyncStorage.getAllKey callback does not happen RN 0.31 Android 4.2.2 when debugging[/+]on Aug 20, 2016
Activity
corbt commentedon Aug 11, 2016
I have replicated this issue on 0.31 and 0.32.0-rc.0.
I can confirm that
AsyncStorage.getAllKeysworks while running on the device normally, but not when debugging JS remotely in Chrome.EDIT: Replicated on Android 6.0.1 with a Oneplus One and Nexus 9, so don't think it's related to your version of Android.
alenia commentedon Aug 12, 2016
I'm also experiencing this issue. It means I haven't been able to use the chrome debugger since upgrading to 0.31. Anyone have any workarounds for now?
corbt commentedon Aug 12, 2016
@alenia nope, still broken for me. Haven't had a chance to investigate.
kageurufu commentedon Aug 12, 2016
I have the same issue, it works as expected in 0.30.
I have downgraded until the cause is determined. I have tested on a Nexus 5 a 6.0.1, and a Nexus 6P at N preview 5
rigdern commentedon Aug 16, 2016
I hit this as well in 0.32.0-rc. I suspect that the commit in 0.31.0 (c89c25f) which makes the new bridge the default bridge introduced the issue.
rigdern commentedon Aug 17, 2016
@cjhopman, do you have any thoughts on this issue. Do you think my theory about your commit (c89c25f) is accurate?
kageurufu commentedon Aug 17, 2016
@rigdern the bridge is definitely the issue. I modified my MainApplication to call
setUseOldBridge(true)in the ReactNativeHost subclass, and I'm now able to use AsyncStorage while debugging on Android with 0.31.0I don't have the time to debug this issue fully beyond that, but for those experiencing this issue, I posted a workaround: https://gist.github.com/kageurufu/79e4aaa1c41cbdb147e936d7e473029d
mkonicek commentedon Aug 20, 2016
@rigdern Thanks for looking into it! I'll ping @cjhopman and @mhorowitz on fb@work messenger.
[-]RCTAsyncStorage.getAllKey callback does not happen RN 0.31 Android 4.2.2[/-][+]RCTAsyncStorage.getAllKey callback does not happen RN 0.31 Android 4.2.2 when debugging[/+]lexs commentedon Aug 23, 2016
Closing in favor of #9436