setItem / getItem not working in upgrade . reactnative 66.5 -> 70.3 / async-storage 1.15.14-> 1.17.10 #852
-
| What happened?setItem not working in upgrade in reactnative 66-> 70.3 / async-storage 1.15.14-> 1.17.10 this is my setData function (working in before upgrade) export async function saveData(key: string, value: any) { log-------------------- LOG  key = countryCode save failed export async function loadData(key: string) { log-------------------- LOG  loadData error key = countryCode let keys = await AsyncStorage.getAllKeys(); for (key of keys) { log ------------------------ Version1.17.10 What platforms are you seeing this issue on?
 System InformationSteps to ReproduceThe same issue if you upgrade or newly install the app. (android , ios same issue) | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| It looks like  | 
Beta Was this translation helpful? Give feedback.
It looks like
saveItemsucceeded. It returnedundefined, but you're comparing againstnull. As forloadData, it looks like you're not awaiting it: You're stringifying and logging aPromise.