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.

bug: Navigating to a page that has been been loaded before crashes app

See original GitHub issue

Bug 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:

  1. Assuming you are starting from Page 1, use the button on the bottom to go to Page 2
  2. Use the button on the bottom of Page 2 to go back to Page 1.
  3. 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
liamdebeasicommented, Oct 29, 2019

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!

0reactions
ionitron-bot[bot]commented, Dec 6, 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.

Read more comments on GitHub >

github_iconTop 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 >

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