bug: Navigating to a page that has been been loaded before crashes app
See original GitHub issueBug Report
Ionic version: [x] 4.11.2 (React)
Current behavior: Navigating to a page that has been loaded before breaks the app 100% of the time.
Expected behavior: The page should render when the app navigates to it.
Steps to reproduce: See StackBlitz below. Very easy to reproduce:
- Assuming you are starting from Page 1, use the button on the bottom to go to Page 2
- Use the button on the bottom of Page 2 to go back to Page 1.
- The app will crash.
You can also start from Page 2 and it will crash when you return to Page 2.
Related code: https://stackblitz.com/edit/ionic-v4-11-2-react-call-stack
Other information:
Error seems to be from RouteManager.removeOrphanedViews
Ionic info:
Ionic:
Ionic CLI : 5.4.4 (/Users/evan/.config/yarn/global/node_modules/ionic)
Ionic Framework : @ionic/react 4.11.2
Capacitor:
Capacitor CLI : 1.3.0
@capacitor/core : 1.3.0
Utility:
cordova-res : 0.6.0 (update available: 0.8.1)
native-run : not installed
System:
NodeJS : v12.10.0 (/usr/local/Cellar/node/12.10.0/bin/node)
npm : 6.11.3
OS : macOS High Sierra
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Fix "Aw, Snap!" page crashes and other page loading errors
Close every tab except for the one that's showing the error message. Quit other apps that are running, and pause any app or...
Read more >App crash when navigating to user page - Meta Stack Exchange
This appears to have been fixed as of 1.0.33. It now explicitly says that the profile page cannot be loaded, and to try...
Read more >[BUG] Frames crashes everything · Issue #5111 - GitHub
In headful mode lets say page is going to reload and if i submit "submit" button etc then if playwright reload the page...
Read more >The Flutter app crashes when navigating to the new screen by ...
The Flutter app crashes when navigating to the new screen by clicking the list item on the FancyBottomNavigation tab screen - Stack Overflow. ......
Read more >What to Do If Your Android Apps Keep Crashing When ...
Have your Android apps been crashing when trying to load a web page? You're not alone; many users have been reporting these issues...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue. This bug has already been fixed and should be available in the next release of Ionic.
You can try it out with this development build of Ionic:
npm i @ionic/react@4.12.0-dev.201910281628.f70e71a @ionic/react-router@4.12.0-dev.201910281628.f70e71a
Thanks!
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.