Closed hardikdangar closed 5 years ago
The behaviour is correct because the component will be keep in stack, that means (if you look into the DOM inspector) the component is still available. Learn more about lifecycle hooks here -> https://medium.com/@paulstelzer/ionic-4-and-the-lifecycle-hooks-4fe9eabb2864
There are several options: Option 1) Use routerDirection="root". So the component will be destroyed from the dom on navigating Option 2) Use the ionViewWillEnter or ionViewDidEnter lifecycle hook which is also triggering when moving back to the page
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version: [x] 4.0.0-beta.17
Current behavior: slidesDidLoad does not called after first time load. it opens fine first time and autoplays but after its cached its not called at all. see below attached code home.page.html and home.page.ts, what happens here is first time it works fine but as soon as i click any of the links and get back to this page from main page slidesDidLoad never fires.
Expected behavior: slidesDidLoad does get called after first time load. it opens fine first time and autoplays and even if page is cached it should be called
Steps to reproduce: 1)
Related code:
home.page.html
home.page.ts
Ionic info: