Repository navigation
Closed
Description
Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
^C~/Projects/Issues/Ionic-Nav-Repro (master *): ionic info
✔ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.7
@angular-devkit/core : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/ng-toolkit : 1.0.7
@ionic/schematics-angular : 1.0.5
System:
NodeJS : v9.8.0 (/usr/local/Cellar/node/9.8.0/bin/node)
npm : 6.4.0
OS : macOS High Sierra
Describe the Bug
Description from community member I am working with:
I discovered another issue regarding navigation/routing animations that you might have some insight into.
When quickly navigating between pages it looks like the page you're navigating away from doesn't properly get removed from the DOM, but has `opacity: 0;`. So the page that's visible can't be interacted with, while the invisible page can.
It _seems_ like it might happen when you navigate a second time before the first routing animation is complete, but that's just a hunch.
Steps to Reproduce
Steps to reproduce the behavior:
- clone and build app in sample repo
- open chrome dev tools, toggle device toobar visible, choose an iOS device and refresh
- click the big blue nav buttons quickly, basically while the nav is still happening
- eventually you will get stuck, I can do it pretty quickly when in iOS emulation mode
NOTE: May also happen in MD, but I am not that quick.
Related Code
https://github.com/vicjohnson1213/Ionic-Nav-Repro
Expected Behavior
Clicking while the nav is occurring should not have negative effects.
Additional Context
Sample repo uses beta.5. I testing locally using beta.7 and issue does still exist in beta.7
Reacted by Victor Johnson, Kelly Olsen, Dmytro Golysh, jase, Orlyapps, Rafael Kraut and Bertrand
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
No fields configured for issues without a type.
Activity
adrynov commentedon Oct 2, 2018
I have the same issue when coming back from a contact detail page back to the contact list page.
The Ion-list is not tappable for a while, then it "unfreezes"
orlyapps commentedon Oct 26, 2018
Same problem
MarcinZiabek commentedon Oct 30, 2018
I have exactly the same problem. Initially, I thought there are just random freezes but the author's suggestion that it might be connected to fast navigating between pages seems highly probably for me! In my case, it is the main thing that stops me with deploying my application to the public ;/
kensodemann commentedon Nov 2, 2018
Updated the Ionic version to beta.15 and verified that this is still an issue: https://github.com/kensodemann/Ionic-Nav-Repro
MarcinZiabek commentedon Nov 20, 2018
I stopped encountering this issue since upgrade to 4.0.0-beta.16 ;) Congratulations Ionic team, well done!
kensodemann commentedon Nov 21, 2018
This does indeed appear to be fixed, though it is fixed by virtue of the animations being disabled, so there isn't really any chance for the bug itself to manifest so far as I can tell...
kensodemann commentedon Nov 21, 2018
Changed my sample application to use
NavControllerto do the navigation and can confirm that this is still an issue. So two issues now:vicjohnson1213 commentedon Dec 3, 2018
Once the missing animations are fixed do you expect the original freezing navigation bug to reappear?
plampy commentedon Dec 5, 2018
Appears to be fixed with beta-17. It looks like navigation between pages waits for the entrance animation to finish before navigating to another page.
kensodemann commentedon Dec 5, 2018
Tried using my sample app updated to beta.17, both in Chrome w/ iOS emulation and on an iOS device, and in both cases I can duplicate the issue, so it is still a problem.
plampy commentedon Dec 5, 2018
Ah, you are right. Looks like using NavController it is still an issue, but I can no longer replicate it with routerLink. On beta.17 im back to seeing the page animations navigating via routerLink with no issues bouncing back and forth quickly between pages.
kensodemann commentedon Dec 5, 2018
Updated my demo to use routerLinks again, and at first I could not duplicate it, but
home.htmlwas usingrouterDirection="forward"whilesecond.htmldid not specify a direction. The default apparently became "forward" since both navs where using the "forward" animation.When I added
routerDirection="back"tosecond.htmlI could duplicate the issue again.Let me know if that did not make sense. I can walk whoever picks this up through that if so.
hiepxanh commentedon Jan 19, 2019
I have work around for one page
fix(angular): race condition when fast navigation (#17197)
ionitron-bot commentedon Feb 21, 2019
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.