You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: routerLink forwards does not unmount origin component #19984
Using routerLink on for example IonCard with routerDirection="forward" does not unmount the origin component, thus not allowing clean up effect to take place.
Expected behavior:
When using router to navigate between pages I expect the page containing the link to be unmounted.
Steps to reproduce:
Create a Ionic/react starter project with sidemenu and add the following card to the Home component:
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.
Activity
Rinbo commentedon Nov 23, 2019
Apparently IonRouterOutlet is keeping the state intact. If I remove it I get my expected behaviour.
ionitron-bot commentedon Dec 23, 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.