Promises, Asyncstorage, and Axois for React Native

Опубликовано: 05 Декабрь 2025
на канале: CourseHack
995
5

So, I was trying to return the response data I was getting from an Axios call wrapped in a AsyncStorage call.

Reason being, I needed the token from AsyncStorage in order to use my api – making a valid axois call. For the longest time, my response being passed back was undefined.

I wondered why?

Then I discovered that I actually needed to wrap the entire thing in a promise.

Here's the corresponding post for code:   / promises-asyncstorage-and-axois-for-react-...  

If you liked what you saw give me a thumbs up and subscribe!

Don't forget to follow me on...

  / donaldlee50  
  / donlee50  
  / donaldlee50  
  / donaldlee50  

and join us on the DevExchange:   / 1394559820669103