-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: ionic vue, not updating params when getting viewitem on route with params #23043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: ionic vue, not updating params when getting viewitem on route with params #23043
Comments
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
The issue appears to be partially resolved using the DEV version of 5.7. If we pass our props using function mode, we still experience the issue. If we go back to using the standard "props: true" then the router gets the updated ID. Still Broken:
Working as intended
|
Ok thanks. Can you give this dev build a shot and see if the props get updated using function mode?
|
Thanks for working so quickly, Liam! Function mode is working now in 5.7.0-dev.202103151643.8d8c811. Awesome first experience submitting an issue to you guys. Thanks for all you do! |
Thanks for the issue. This has been resolved via #23049, and a fix will be available in an upcoming release of Ionic Framework. |
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. |
After version 5.5.2 Only the first time a route is rendered does the prop get updated. Subsequent calls to the same component with a different route property continue to only render with the original property. This manifests itself when utilizing a list, detail, back-to-list pattern (for example Client List & Client Detail in a CRM app).
Ionic version:
5.5.3 and onward. 5.5.2 worked correctly.
Current behavior:
router.push('/mycomponent/1') - the first time the component recognizes the prop as "1".
router.push('/mycomponent/2') - the second time the component continues to only see prop as "1"
Expected behavior:
The props should be updated so that the component can update the view based on the revised route
Related code:
Sample code based on the default example app
Router:
Home
Test View
The text was updated successfully, but these errors were encountered: