-
Notifications
You must be signed in to change notification settings - Fork 167
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
Browser back navigation not working on 24.4.11 (on react-router) #19911
Comments
Did you try the latest version? |
Looking at the error mentioning Also, as Knoobie pointed out, Vaadin 24.4.3 is a bit old, the latest version is 24.4.11; several fixes have been released since 24.4.3. |
There are currently some timing/async related issues when using react router with the latest Vaadin versions. We are working on the issues but solution is not there yet. For now, if you can, change to using vaadin router, that should resolve the issues. |
We upgraded the version to 24.4.11 as recommended. The problem still exists on that version. We try to assemble a demo project which has show cases the error. |
Issue can be closed. |
Reopening this for us since it's still an issue on react-router |
Even if I disable React with
this happens. Now I have to move back to 24.3 because of this issue. Please fix ASAP. This is a huge blocker! |
Might be related to the upgrade of the react router - 0bfacf5 - in 24.4.10 I don't have such problem. |
To reproduce: ViewA -> ViewB -> History back View A -> View B -> History Back no longer works (the browser is updating the title but the navigation does not happen) |
@FabianEhr Could you share details on that so that others can also see if they have something similar that prevents |
Just did a quick test with simple Flow+SpringBoot application downloaded from start.vaadin.com. First I ran the application as-is, it runs and confirmed Then I set
After this I ran So at least the most basic case seems to work. That said, we'd really need some input on how to actually reproduce the issue of react still hanging there once it has been disabled, to be able to fix the issue. |
Created #19951 for tracking the issue above. |
Disabling must be added to the plugin. With only the property it doesn't work in my case.
|
Does this mean that you got it to work with some recent 24.4 version after applying the config through the plugin? |
Yes with 24.4.11 it works |
Status update: Unfortunately latest version of react-router did not fix the original issue. We are currently investigating a way to fix this in Flow. Will update once we have something. |
Just to confirm: It's a regression in the react-router, right? Looking at 24.4.10 (I'm using) with an older version then 24.4.11 - I don't observe such problems in production. |
I'm not 100% sure. We still have no reproduce example or exact description on this ticket. Maybe the same issue as this: #19839? That one also has a sample project that reproduces the issue. In any case we have timing/async issue on with react-router navigate on at least latest 24.4 version and 24.5 pre-releases, which we are currently trying to solve. Once a solution for that has been found, we'll go through any remaining issues. Edit: I did test the procedure mentioned here in a simple test project a few days ago and that did work fine on latest 24.4. |
Tried this again with a simple app with View A and View B. Navigating from A to B and then back using back button repeatedly seems to work fine with all tested combinations: Vaadin 24.4.10 and Vaadin 24.4.12, both with react router and vaadin router. Please find the test project attached below. I'll mark the ticket as waiting for author for now, in case someone can provide a test project which reproduces the issue. |
I still have problems with UI.navigate() not changing location in the browser, created a bug for that too: |
Closing this for now since it's been two weeks with no response concerning the original issue. If the problem still persists, please open a new issue with instructions on how to reproduce the issue. The somewhat related issue #20077 will remain open. |
Description of the bug
After upgrading to Vaadin 24.4.3 and disabling the vaadin-react feature within the properties the browser back navigation isn't working. The following error can be aquiered from the developer console.
Errorlog
indexhtml-C98SXJYq.js:62437 You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via
window.history.pushState/
window.location.hashinstead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.
Expected behavior
The browser back navigation should work.
Minimal reproducible example
Currently we got no time to provide a example project.
We demonstrated the bug to Sascha Merkel and Sebastian Kühnau today.
Versions
The text was updated successfully, but these errors were encountered: