-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .then() in ion-overlay-method-*-should-use-await rule #47
Comments
Thanks @JesperBalslev. We should probably just make that a warning, not an error. I think if you do this, it may not complain: async showAlert() {
const alert = await this.alertCtrl.create({
message: "Hello There",
subHeader: "I'm a subheader"
});
await alert.present();
} We just need to add logic to check for a |
Thanks for the reply, that is true. :) |
No reason, it's a preference! We should handle both ways. 😄 |
Linter output is kind of noisy with these false positives... |
🎉 This issue has been resolved in version 1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When changing overlay components (Loading, Toast, Modal, or Alert ) to v4, which are created asynchronously now, the tslint migration still gives an error when you write it like this:
giving this error:
The text was updated successfully, but these errors were encountered: