question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selecting a Tab in Tabs do not trigger viewWillEnter lifecycle event

See original GitHub issue

Ionic version: (check one with “x”) [ ] 1.x [ ] 2.x [x] 3.x

I’m submitting a … (check one with “x”) [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

Clicking tab buttons in the tabs component does not trigger App#viewWillEnter and other lifecycle events, except the first time the page is being loaded.

Expected behavior:

Every time selected tab changes in tabs component, lifecycle events get triggered on each tab’s view.

Steps to reproduce:

http://plnkr.co/edit/sJFO6E9cRUXeKWSXb1LZ?p=preview

Related code:

n/a

Other information:

Probably related: #9787.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

global packages:

    @ionic/cli-utils : 1.0.0
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.0.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.0.0
    @ionic/cli-plugin-ionic-angular : 1.0.0
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v6.10.3
    OS         : OS X El Capitan
    Xcode      : Xcode 8.2.1 Build version 8C1002 
    ios-deploy : 1.9.1 
    ios-sim    : 5.0.13 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
kensodemanncommented, Feb 8, 2018

@Creawebs - we are not planning on having any more v3 releases of Ionic. You will need to retest this in v4 when it is released and then create a new issue if it is still a problem. The first BETA for v4 should be soon (within a few weeks).

8reactions
lobancommented, May 3, 2018

That is a very important statement @Creawebs. I really wish this would be announced properly on the Ionic Website or blog. You are effectively ending any and all support for Ionic 3 (and previous), even before Ionic 4 is out. This is a very important decision that really ought to be communicated honestly and openly with everyone in a proper manner. Why even bother filing or commenting on v3 tickets then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting a Tab in Tabs do not trigger viewWillEnter lifecycle ...
Current behavior: Clicking tab buttons in the tabs component does not trigger App#viewWillEnter and other lifecycle events, except the first ...
Read more >
Ionic 4 Tab to page then back to Tab did not trigger ...
I have an small application where user can edit their account and after edit user route back to my account page. Situation: My...
Read more >
Ionic 4 ionViewDidEnter() didnt triggered after navigated from ...
When this transition happens, Tab1 remains the active tab, and the entire tabs context transitions away. As a result, lifecycle events will fire...
Read more >
TABS Map Creator TUTORIAL - How to Use + Tips and Tricks!
Your browser can 't play this video. Learn more.
Read more >
ionic about to leave Code Example - Code Grepper
ionViewWillEnter() // Fired when the component routing to is about to animate into view. ... ionviewdidload ionic 4 · ionic lifecycle events example ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found