Skip to content
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

fix: trigger refresh from client on hotswap with PUSH #20848

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mcollovati
Copy link
Collaborator

When PUSH is enabled, Flow Hotswapper uses it to refresh only the affected UIs. However, this can cause issues if Flow views contain code that relies on VaadinRequest thread local, since hotswap refresh start in a background thread. This change defines a client side event listener to trigger the refresh, and uses PUSH only to fires the event.

Fixes #20843

When PUSH is enabled, Flow Hotswapper uses it to refresh only the affected UIs.
However, this can cause issues if Flow views contain code that relies on
VaadinRequest thread local, since hotswap refresh start in a background thread.
This change defines a client side event listener to trigger the refresh,
and uses PUSH only to fires the event.

Fixes #20843
Copy link

github-actions bot commented Jan 15, 2025

Test Results

1 163 files  ± 0  1 163 suites  ±0   1h 33m 12s ⏱️ + 1m 43s
7 620 tests ± 0  7 564 ✅ +15  56 💤 ±0  0 ❌  - 2 
7 987 runs  +31  7 921 ✅ +45  66 💤 +1  0 ❌  - 2 

Results for commit c09fa73. ± Comparison against base commit 3fe8592.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

org.springframework.beans.factory.BeanCreationException on hotswap
2 participants