Items wrong order

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Im using asyncstorage to store every item on my app and getting them on componentdidmount and setting the state as that value. problem is, my list updates as normal (new item placed to end of list) when i add items to list on app and update the state. but if i refresh (get the latest asyncstore items again) , my list items change order randomly. Maybe its beacuse of asyncstorage work async so items get to the app unordered. But im not sure if this is the reason. Can you help me?

a key missing piece here is “help others reproduce the problem”

asyncstorage just stores strings. you deserialize those strings and then do whatever you want with them. ordering is up to you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.