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

**URL:** <https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732>\
**Category:** ionic-v3\
**Created:** [April 17, 2017, 1:33am UTC](https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732 "2017-04-17T01:33:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilal061](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bilal061/32/104099_2.png) [@bilal061](https://forum.ionicframework.com/u/bilal061)\
**Post date:** [April 17, 2017, 1:33am UTC](https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732/1 "2017-04-17T01:33:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![bilal061](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bilal061/32/104099_2.png) [@bilal061](https://forum.ionicframework.com/u/bilal061)\
**Post date:** [April 18, 2017, 8:07am UTC](https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732/2 "2017-04-18T08:07:53Z")

</div>

Has no one experienced this? O.o

---

<div class="post-metadata">

**Author:** ![MaaGiiKs](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@MaaGiiKs](https://forum.ionicframework.com/u/MaaGiiKs)\
**Post date:** [May 18, 2017, 11:15am UTC](https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732/3 "2017-05-18T11:15:48Z")

</div>

Hello,

Try :

> ionSelected() {  
> // DO SOMETHING OR NOT  
> }

In your ‘HomePage’ for example.

Links : [Capturing ion-tab click on active tab event - #27 by psalchow](https://forum.ionicframework.com/t/capturing-ion-tab-click-on-active-tab-event/56594/27)

I Hope I could help you.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [May 18, 2017, 9:22pm UTC](https://forum.ionicframework.com/t/should-ionviewdidload-inside-a-tab-fire-again-if-that-tab-is-tapped-after-it-is-already-selected/86732/4 "2017-05-18T21:22:38Z")

</div>

This was probably [fixed in 3.1](https://github.com/driftyco/ionic/pull/11084).
