bug: [ionic-5.0.0-rc1] Uncaught exceptions when navigating to and from pages with IonRefresher
See original GitHub issueBug Report
Ionic version: [x] 5.0.0-rc1
Current behavior: If you have an IonRefresher/IonRefresherContent on a page and you navigate from the page with the refresher to the page without the refresher, it’ll trigger the error. The stacks are a bit different depending on iOS or MD modes.
Expected behavior: No uncaught exceptions
Steps to reproduce:
- Run sample Project
- Click on Menu
- Click on List
- Click on Menu
- Click on Home
Related code:
https://github.com/mattdelliott/ionic5-refresher-bug-sample
Other information:
Stacks:
MD:
Uncaught (in promise) TypeError: Cannot read property '__zone_symbol__addEventListener' of undefined
at addEventListener (index-c38df685.js:205)
at Object.enable (index-c38df685.js:325)
at Object.enable (index-c38df685.js:561)
at class_1.disabledChanged (ion-refresher_2-md.entry.js:331)
at class_1.<anonymous> (ion-refresher_2-md.entry.js:579)
at step (tslib.es6.js:99)
at Object.next (tslib.es6.js:80)
at fulfilled (tslib.es6.js:70)
iOS:
ion-refresher_2-ios.entry.js:387 Uncaught (in promise) TypeError: Cannot read property 'clientHeight' of undefined
at class_1.<anonymous> (ion-refresher_2-ios.entry.js:387)
at step (tslib.es6.js:99)
at Object.next (tslib.es6.js:80)
at tslib.es6.js:73
at new Promise (<anonymous>)
at __awaiter (tslib.es6.js:69)
at class_1.setupiOSNativeRefresher (ion-refresher_2-ios.entry.js:379)
at class_1.<anonymous> (ion-refresher_2-ios.entry.js:596)
at step (tslib.es6.js:99)
at Object.next (tslib.es6.js:80)
at tslib.es6.js:73
at new Promise (<anonymous>)
at __awaiter (tslib.es6.js:69)
at class_1.setupNativeRefresher (ion-refresher_2-ios.entry.js:586)
at class_1.checkNativeRefresher (ion-refresher_2-ios.entry.js:337)
at class_1.componentDidUpdate (ion-refresher_2-ios.entry.js:606)
at safeCall (core-80bde1aa.js:1373)
at postUpdateComponent (core-80bde1aa.js:1326)
at postUpdate (core-80bde1aa.js:1282)
at updateComponent (core-80bde1aa.js:1284)
at Array.update (core-80bde1aa.js:1218)
at consumeTimeout (core-80bde1aa.js:117)
at flush (core-80bde1aa.js:140)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
bug: [ionic-5.0.0-rc1] Uncaught exceptions when navigating to ...
Current behavior: If you have an IonRefresher/IonRefresherContent on a page and you navigate from the page with the refresher to the page ......
Read more >ion-refresher bug in ionic - Stack Overflow
I'm calling the complete() method in the wrong way ? And when i refresh the page and navigate to another page quickly, this...
Read more >ion-refresher: Pull-to-Refresh Page Content on Ionic Apps
ion-refresher provides pull-to-refresh functionality on content components. Learn how this lets users pull down on a page using touch to retrieve more data....
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 has been resolved via https://github.com/ionic-team/ionic/pull/20322 and will be available in an upcoming release of Ionic Framework.
Yep that fixed it