bug: component reuse breaks ion-radio-group/ion-radio (stuck in infinite loop)
See original GitHub issueBug Report
Ionic version: [x] 4.x
Current behavior: Since @ionic/angular 4.9.0 ion-radio-group/ion-radio end up in an infinite loop when reused (e.g. navigating to the same page a second time).
Expected behavior: Not to be stuck in an infinite loop.
Steps to reproduce:
- Clone example repo
- npm i
- ionic serve
- open dev-tools
- on tab1 click on “push page with radio-group”
- navigate back to tab1
- click on “push page with radio-group” again
- check console -> infinite loop
Related code: https://github.com/DavidStrausz/radio-reusage-bug
Other information: Probably cause by #18963
Ionic info:
Ionic:
Ionic CLI : 5.2.7 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.9.0
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.4.0 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:7 (3 by maintainers)
Top Results From Across the Web
bug: component reuse breaks ion-radio-group/ion ... - GitHub
Expected behavior: Not to be stuck in an infinite loop. Steps to reproduce: Clone example repo; npm i; ionic serve; open dev-tools; on...
Read more >Stuck in infinite loop when attempting to receive user choice ...
To do this I have a CanDeactivate guard set up and a modal that uses an EventEmitter to emit a true if the...
Read more >4.1. Reuse Hardware By Calling It In a Loop - Intel
Loops are a useful way to reuse hardware. If your component function calls another function, the called function will be the top-level component....
Read more >274991 – telnet hangs due to infinite loop condition
One of the client will go into a loop consuming large amounts of CPU time. Version-Release number of selected component (if applicable): telnet-0.17-26...
Read more >Creating Reusable Angular Components – How To Avoid the ...
There are two main ways to create reusable components in Angular: Pass inputs to the component, passing the necessary data to the component...
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
This issue has been fixed and will be available in the next release of Ionic. Thanks!
@manucorporat I’m sorry to ping you like that, but as there is already a bug fix release out for 4.9.0 I’m wondering if you guys are aware of this issue and if it is going to be fixed before the next major version.
Cheers