-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: vue re-mounts intermediary views when not needed #23914
Comments
For more detail issue, please watch it. Description: |
Same as for me. Currently in my new app, i have only 3 pages, home, login and register. Switching from Login to Register, vice versa, or from Home to either of them renders 2 views at same time. I can also post a video if needed. Relevant deps: |
Thanks for the issue. Looks like this line is the culprit: https://github.com/ionic-team/ionic-framework/blob/main/packages/vue/src/components/IonRouterOutlet.ts#L292 We probably need to be more specific about which views we remount by taking into account the delta value that the app was navigated with. I will look into a fix. As a temporary workaround, you can downgrade to v5.6.13. |
Hi @liamdebeasi, I am afraid of if I downgrade to version 5.6.13 will influence the router.replace that got transition not remove from the prev view page rendered like the last issue of: this was fixed that just not showing errors anymore. But that still had a router.replace problem, transition gets an incorrect view. |
Thanks for @liamdebeasi to point the problem, I finally solved this bug by changing abit code from
and below this link is my video record solution. Bug code:
fixed code:
or
|
Thanks for the issue. Can everyone try the following dev build and let me know if it resolves the issue?
|
Installed that build to test @liamdebeasi but I get this error now: Old: New: |
Do you have an example app I can test in? |
Unfortunately no this is our main app |
Can you reproduce the issue in an Ionic starter app? I cannot see this on my end, so it is hard to pinpoint what the issue may be. |
Cleaning out my node modules and re-building to have a cleaner test |
Nuked my node modules and rebuilt, it is fine and I don't see the bug anymore, thanks @liamdebeasi sorry for false flag |
Glad the issue is resolved, and thanks for testing! |
Thanks for the issue. This has been resolved via #24056, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue testing the dev build, and let me know if you run into any issues. Thanks! |
We had to revert 5.9.0-dev.202110121546.9dce03f back to 5.8.3 because the @ionChange event stopped working on ion-radio-group |
@tigohenryschultz Can you provide a reproduction? |
Is there an ionic/vue boilerplate for jsfiddle.com I could point to the dev build for reproducing? |
We do not have a boilerplate JSFiddle at the moment. The easiest approach is probably to create a blank Ionic starter app, reproduce the issue there, and then push that app to GitHub. |
https://github.com/tigohenryschultz/radio-button-group-bug Select a radio option should trigger:
5.8.4 does, the 5.9.0 doesnt |
Looks like that dev build had some other experimental work in it. Here's a new dev build with only the Vue fixes:
|
Awesome, thanks again @liamdebeasi |
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. |
Prequisites
Ionic Framework Version
Current Behavior
I have IonMenu with a list of routes.
When I push a page(Orders) for the first time all is well.
and again when I push to a new page for the second time it renders the new page(Products) and the old page(Orders).
It affects my methods that I created for both pages. It calls all the created methods from both page.
Here's some video that I recorded
https://user-images.githubusercontent.com/41864097/132933264-769c352c-49ba-4174-9d0c-44719469d752.mp4
Expected Behavior
Old page must not be rendered again when you push to a new page
Steps to Reproduce
Just navigate from menu and check the console which I console log only text for testing.
Code Reproduction URL
https://github.com/kabzko/testroute
Ionic Info
Ionic:
Ionic CLI : 6.17.1
Utility:
cordova-res : 0.15.3
native-run : not installed globally
System:
NodeJS : v14.17.0
npm : 6.14.13
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: