-
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: routing breaks after specific sequence of navigations and clicking on ion-back-button #23873
Comments
I have the same issue and try many ways to force update but doesn't execute, the event router end trigger without any error. |
I'm running into the issue, quite a big bug in my opinion. I can't seem to figure out what causes it/reliably reproduce it. I am on 5.8.5 too |
Having the same issue, and it's happening occasionally, including not going back when clicking the I'm using @ionic/vue 5.8.5, vue 3.2.21 and vue-router 4.0.12. |
We are on 5.9.1 and running into an issue that sounds very similar to this, that is getting stuck on a page randomly when navigating in the app. It is causing a blocker in our deployment, any idea of a fix? |
We are experiencing the same issue, and for us it's been a pain through all of 5.x and now also on all the RC's for Ionic 6 |
As said this bug (or something very similar) has been a pain for us both in v5.x and in v6 RC 0 through 3. The most important observation is that this bug is only produced when we are navigating using We have found three workarounds, both of which prevents the bug from happening, but each having their own caveats. 1. Override the default <ion-back-button :default-href="defaultHref" @click.prevent="navigateBack()"></ion-back-button> function navigateBack() {
router.go(-1);
} 2. Use MemoryHistory instead of WebHistory const router = createRouter({
// history: createWebHistory(process.env.BASE_URL),
history: createMemoryHistory(process.env.BASE_URL),
routes
}) 3. Use WebHashHistory instead of WebHistory const router = createRouter({
// history: createWebHistory(process.env.BASE_URL),
history: createWebHashHistory(process.env.BASE_URL),
routes
}) These are hacks we are using temporarily, while waiting for the issue to be resolved. |
I have the same issue with VueJS, it seems that |
This seems like something I fixed in this pull request: #24433 |
Seems the bug was for another reason and I fixed it :) |
What was the fix you've used? |
If I remember, the issue was that I was calling a method that did not exist when the user clicked on some route in the app, and after fixing this, the router started working normally again :) |
Having exactly the same issue as @RobinHavre with ionic v6.0.3. Thanks so much for posting your workaround. The only thing that works for me is using MemoryHistory. I am not using tabs and I have |
Since I am also affected (v6.0.3) I have tried for a long time to find and solve this without success. In my opinion, a major bug. Any Ionic Vue app with at least 3 level is basically affected and has navigation that "freezes" at some point. Since I couldn't find a solution either, I now have to switch to the MemoryHistory as well (which then of course create new problems). |
Same here... |
I've refactored quite a bit of the ionic/vue routing code here but it is for version 5.9.x. If you guys could give that a whirl. I'm no longer getting this issue. |
It happens for me with just 2 levels: list and detail. Swiping to go back breaks the navigation. |
Hi there, Can everyone try the following dev build and let me know if it resolves the issue?
I tested this dev build on the app in #23873 (comment) and verified that the issue no longer reproduces. (Though additional testing is always appreciated 😄 ) For some added context, this issue happens when using For anyone interested in why this problem was happening, please see the comment I added in the related PR: https://github.com/ionic-team/ionic-framework/pull/24670/files |
Thanks for the fix. I will test it this weekend. :-) |
Hi @liamdebeasi |
Do you have a GitHub repo I can take a look at? |
Yes... here https://github.com/alons182/sidemenutest |
@liamdebeasi I have tested this in my app with a side menu as well, I don't get the same error @alons182 has with a side menu. I will do some more testing to see whether it comes back. What I did in the side menu by the way was replace:
With:
|
Thanks for testing! I resolved those issues and added a new dev build to #23873 (comment). Mind giving it another test?
|
Just did a thoroughly test and it seems completely resolved for me now. |
Everything seems to be working fine now |
Just tested as well and I am no longer getting the error. Many thanks for your efforts @liamdebeasi |
Thanks for the issue. This has been resolved via #24670, and a fix will be available in an upcoming release of Ionic Framework. Thank you very much to everyone who helped test and provide feedback! We appreciate your patience as we worked to resolve this issue. |
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
After following a specific order of navigation steps the ion-back-button changes the path but the back animation does not happen and the view stays the same.
Expected Behavior
The ion-back-button should trigger the animation and change the view
Steps to Reproduce
Create a blank ionic vue project and create 3 views.
Add those Views to the router and redirect root to view 2
The views have buttons to go to the next view
View 1 -> View 2 -> View 3
The views also have an ion-back-button.
The App starts on view 2
Now the URL shows the path to view 1 but the last animation did not happen and we are still on view 2
Code Reproduction URL
https://github.com/luxterful/ionic-back-routing-issue
Ionic Info
Ionic:
Ionic CLI : 6.16.3 (/home/lukas/.nvm/versions/node/v14.16.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 5.7.0
Capacitor:
Capacitor CLI : 3.2.2
@capacitor/android : not installed
@capacitor/core : 3.2.2
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.3
native-run : 1.4.1
System:
NodeJS : v14.16.1 (/home/lukas/.nvm/versions/node/v14.16.1/bin/node)
npm : 7.11.2
OS : Linux 5.8
Additional Information
No response
The text was updated successfully, but these errors were encountered: