-
Notifications
You must be signed in to change notification settings - Fork 168
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
feat: HMR for translation files #20142
Conversation
flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java
Outdated
Show resolved
Hide resolved
* Clears resource bundle cache on translation resource redeployment * Fires a HMR event to the browser when translations are reloaded Limitation: Only supports DefaultI18NHandler where the paths are known. If you have a custom I18N handler, you might need a custom HMR supporting HotswapListener. For #20118 Requires vaadin/hilla#2795 to fully fix the issue
611bb29
to
de04118
Compare
flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation file changes are correctly handled by the Flow Hotswapper.
For Flow views, the page is refreshed (no page reload) using PUSH (if enabled) or browser live reload websocket channel.
I couldn't test with Hilla, but the browser live reload correctly forwards the hmr event to the client.
Hilla needs a slightly different version of vaadin/hilla#2795 and can be tested as part of that one |
* fix: HMR for translation files * Clears resource bundle cache on translation resource redeployment * Fires a HMR event to the browser when translations are reloaded Limitation: Only supports DefaultI18NHandler where the paths are known. If you have a custom I18N handler, you might need a custom HMR supporting HotswapListener. For #20118 Requires vaadin/hilla#2795 to fully fix the issue * format * trigger Flow UIs refresh * flow support * detect correct refresh stragety per UI --------- Co-authored-by: Marco Collovati <[email protected]>
* fix: HMR for translation files * Clears resource bundle cache on translation resource redeployment * Fires a HMR event to the browser when translations are reloaded Limitation: Only supports DefaultI18NHandler where the paths are known. If you have a custom I18N handler, you might need a custom HMR supporting HotswapListener. For #20118 Requires vaadin/hilla#2795 to fully fix the issue * format * trigger Flow UIs refresh * flow support * detect correct refresh stragety per UI --------- Co-authored-by: Artur <[email protected]> Co-authored-by: Marco Collovati <[email protected]>
Clears resource bundle cache on translation resource redeployment
Fires a HMR event to the browser when translations are reloaded
Limitation: Only supports DefaultI18NHandler where the paths are known. If you have a custom I18N handler, you might need a custom HMR supporting HotswapListener.
For #20118
Requires vaadin/hilla#2795 to fully fix the issue