I'm intrigued by the idea of integrating TypeScript's async/await feature with lifecycle hooks.
While this feature is undeniably convenient, I find myself wondering if it's considered acceptable to make lifecycle hooks asynchronous.
After experimenting with this approach several times and observing that it works as expected, I'm still unsure if it aligns with best practices or not.
For example:
In an Angular context:
async ngOnInit() {
await someAsyncFunction();
}
In an Ionic context:
async ionViewWillEnter() {
await someAsyncFunction();
}