Repository navigation
feat: return if the pop on NavController was successful - #27404
sean-perkins merged 3 commits into
Conversation
|
|
|
CI is failing on the formatting diff with prettier. We will need to run If you are able to do this, that would be great. Otherwise I can checkout your remote and push the changes directly. |
Hi, sorry for that - I fixed formatting using given npm task. |
sean-perkins
left a comment
There was a problem hiding this comment.
Thanks for this contribution 🎉
I updated the base branch to target feature-7.1. While this is a "bug" that the type is incorrect against ion-nav, releasing in a minor will help developers migrate if they are currently strictly typing against the return type.
e.g.:
function foo(): Promise<void> {
// This will return an error once the type signature changes
// That is ok - but we will do it in a minor so developers aren't surprised by it
return this.navCtrl.pop();
}
Issue number: Resolves #27403
What is the current behavior?
NavController.pop() returns
Promise<void>.What is the new behavior?
NavController.pop() returns
Promise<boolean>propagating success/fail from underlying outlet.Does this introduce a breaking change?