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: component reuse breaks ion-radio-group/ion-radio (stuck in infinite loop)

See original GitHub issue

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

  1. Clone example repo
  2. npm i
  3. ionic serve
  4. open dev-tools
  5. on tab1 click on “push page with radio-group”
  6. navigate back to tab1
  7. click on “push page with radio-group” again
  8. 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:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
liamdebeasicommented, Sep 25, 2019

This issue has been fixed and will be available in the next release of Ionic. Thanks!

4reactions
DavidStrauszcommented, Sep 17, 2019

@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

Read more comments on GitHub >

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

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