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: Navigating between instances of the same route with different parameters does not show updated content #22931
Current behavior:
Navigating between instances of the same route with different parameters does not create a new version of the component, and thus does not show the correct data for the route.
Expected behavior:
When navigating between the same route with different parameter, a new component should be spawned with its own state, allowing navigation back to the previous and separate instance.
URL updates, but the component key/content does not change
(Note, I didn't setup Netlify redirects, so visit the root URL and navigate from within the app)
Related code:
This is the ion-button code, the only change made from the Vue sample:
<ion-button router-link="/message/5" routerDirection="forward" :detail="false" class="list-item">Go To Message 5</ion-button>
Other information:
This bug report says how components stay mounted in order to allow the state to be kept the same when navigating back through the history, but in this case the component is staying mounted and retains the original message data (index 0), instead of the new message data (index 5).
changed the title [-]bug: [/-][+]bug: Navigating between instances of the same route with different parameters does not show udpated content[/+]on Feb 16, 2021
Hi @liamdebeasi, thanks, I did see this after I just posted. I just want to check, in your bug report you say "The new page content simply appears.", whereas what I'm reporting here is that the new content doesn't display at all.
Just want to make sure you're aware, they very well may be covering the same issue.
changed the title [-]bug: Navigating between instances of the same route with different parameters does not show udpated content[/-][+]bug: Navigating between instances of the same route with different parameters does not show updated content[/+]on Feb 19, 2021
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
[-]bug: [/-][+]bug: Navigating between instances of the same route with different parameters does not show udpated content[/+]liamdebeasi commentedon Feb 16, 2021
Thanks for the issue. I am going to close this as a duplicate of #22662.
beneverard commentedon Feb 16, 2021
Hi @liamdebeasi, thanks, I did see this after I just posted. I just want to check, in your bug report you say "The new page content simply appears.", whereas what I'm reporting here is that the new content doesn't display at all.
Just want to make sure you're aware, they very well may be covering the same issue.
liamdebeasi commentedon Feb 16, 2021
Thanks for clarifying! Yeah I think the two issues are related.
beneverard commentedon Feb 16, 2021
Thanks again Liam :-)
[-]bug: Navigating between instances of the same route with different parameters does not show udpated content[/-][+]bug: Navigating between instances of the same route with different parameters does not show updated content[/+]ionitron-bot commentedon Mar 21, 2021
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.