Async & await via platform/ionic events


#1

I’ve recently upgraded my project and now have async/await capability, which is great! So far I’ve used it only on page events (e.g. (click) or ionViewDidLoad). Seems to work well so far.

I have a good chunk of promise-based code that is triggered during app startup/resume (e.g. platform.ready() or platform.subscribe()), and via custom ionic event subscriptions (events.subscribe). Is there anything I should consider before starting to overhaul this type of code for async/await?


#2

I don’t think async/await is better than Promises. Honestly, it seems like a downgrade. So be sure you’re getting something for the work you put in.