How do I guarantee the data (async) is ready when the user clicks on an option of an actionSheetIOS?
|Added at||2016-05-19 01:05|
I am developing an IOS app using React Native and Reflux. When the user opens up a certain actionSheetIOS, I trigger an action which causes the store to make an async request. The store keeps the collection of all of instances of data returned and passes down all the data to all of the views that subscribe to that dataset. However, since one of the options of the actionSheet requires the data returned by that request, I can't guarantee that the data will be ready when the user click on the option. How do I guarantee the data (async) is ready when the user clicks on an option of an actionSheetIOS?
I hope I was able to explain this well enough. Also, I am relatively knew at React/Reflux so I may be missing something altogether.