Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic ionViewWillEnter not fire after becoming active from a NavController.pop()

$
0
0

@hako wrote:

Hi,

let's say we have a page A and a modal page B.

In page A we setup a lifecycle hook

onViewWillEnter()
{
 console.log("event onViewWillEnter fired");
 this.platform.registerBackButtonAction( () => {
  console.log("back button pressed!");
});
}

When we freshly enter into this page A the event is fired and the back button works as expected.
Let's open up again page A, and from this page we show the model page B using the ModalController.present.
If we dismiss now page B (shown modal), the event onViewWillEnter is not being fired anymore while re-entering page A, but also the back button is not working anymore.

Accoring the ionic docs the event should be fired as page A becomes active again:

ionViewWillEnter void Runs when the page is about to enter and become the active page.

From my point of this sFrom my point of view this is a bug.
Or can someone explain this behaviour? What do you think?

Thanks
hako

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>