Comments (4)
Or is this a feature that could be added?
Yes, Vaadin Flow team is going to implement this feature soon and hopefully this will target Vaadin 24.5 (or maybe even 24.4) release.
from flow.
@knoobie good point, let's see how development goes, I'm okay to include it into 24.4 even though it's in beta already. Copilot experience was the main point, indeed.
from flow.
I found a workaround. It is a hack as I have to use the getInternals()
method which is not a stable API and should not really be used as I understood.
I basically clear the routerTargetChain
in UIInternals
using a fake location. Then I do the actual navigation using the NavigationTrigger.PROGRAMMATIC
trigger to avoid a browser history entry.
Location location = ...; // the location corresponding to the route I want to refresh
UI.getCurrent().getInternals().showRouteTarget(new Location("random"), new Div(), null);
UI.getCurrent().getInternals().getRouter().navigate(UI.getCurrent(), location, NavigationTrigger.PROGRAMMATIC);
This results in the behaviour that I need. Did I miss something that can do the same, but in a clean way? Or is this a feature that could be added?
from flow.
@mshabarov I just came across a use case for this as well. I know it's pretty late for 24.4.. but this looks like a neat and easy addition; some Users and even your Copilot would love to have 😉
from flow.
Related Issues (20)
- [Placeholder] PostponeUpdateIT::postpone_cancelResetsUrlOnBack HOT 1
- [Placeholder] NavigationTriggerIT::testNavigationTriggers fails
- Hilla app with @PWA annotation fails when running as native compiled image on macOS HOT 18
- Bun not being recognized on Windows HOT 2
- IndexOutOfBoundsException on UI#push() call HOT 2
- Browser window is opened again on redeploy after a while HOT 6
- Flow app might redirect to /login page when code is compiling in the background. HOT 8
- Additional navigation events caused by firing popstate events HOT 2
- Improve the client-side exception handling for "Invalid JSON from server" errors HOT 2
- Missing translation files causes an error with translate HOT 1
- [PiT 24.4.0 RC1] business-app-starter-flow is broken with V24.4.0.rc1
- PiT 24.4: when migrating a hilla project from `2.5.5` to `24.4.0.rc1` old stuff in `generated` folder fail compilation HOT 1
- Include `.scss` and `.sass` in `stats.json` hashes HOT 3
- Filter classpath scanning for `FrontendDependencies` HOT 2
- PiT 24.4: Regression in navigation events HOT 1
- Menu Icons are not shown in production mode HOT 2
- Two times invocation of the com.vaadin.flow.router.HasUrlParameter#setParameter method in Vaadin Flow 24.4.0.rc1 HOT 4
- Support `filterClasspath` in Maven plugin, similar to Gradle plugin
- Consider switching from Reflections to a maintained library
- Client-side JS error when showing a Dialog with certain types of components on it HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow.