Should ionViewDidLoad inside a tab fire again if that tab is tapped after it is already selected?

Hi,

In my new ionic 2 project which uses the tabs template, I put some logs inside ionViewDidLoad of each tab that I have in my tabs page. And I noticed that tapping on an already active tab is re-triggering the ionViewDidLoad. Is that by design?

Has no one experienced this? O.o

1 Like

Hello,

Try :

ionSelected() {
// DO SOMETHING OR NOT
}

In your ‘HomePage’ for example.

Links : Capturing ion-tab click on active tab event - #27 by psalchow

I Hope I could help you.

This was probably fixed in 3.1.