Skip to content

fix: Use UI identity for background change detection in Effect (#23980) (CP: 25.1)#24013

Merged
vaadin-bot merged 1 commit into25.1from
cherry-pick-23980-to-25.1-1774515231367
Mar 26, 2026
Merged

fix: Use UI identity for background change detection in Effect (#23980) (CP: 25.1)#24013
vaadin-bot merged 1 commit into25.1from
cherry-pick-23980-to-25.1-1774515231367

Conversation

@vaadin-bot
Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #23980 to branch 25.1.

Original PR description

EffectContext.isBackgroundChange() always returned false for shared signals modified by another user's session because the check only looked at VaadinRequest.getCurrent(), which is non-null on any request thread. Now Effect tracks its owner UI and compares UI.getCurrent() against it, correctly detecting cross-session changes as background changes.

Fixes #23979

EffectContext.isBackgroundChange() always returned false for shared signals modified by another user's session because the check only looked at VaadinRequest.getCurrent(), which is non-null on any request thread. Now Effect tracks its owner UI and compares UI.getCurrent() against it, correctly detecting cross-session changes as background changes.

Fixes #23979
@vaadin-bot
Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) March 26, 2026 09:03
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test Results

 1 386 files  ±0   1 386 suites  ±0   1h 26m 12s ⏱️ + 1m 13s
 9 919 tests +4   9 848 ✅ +4  71 💤 ±0  0 ❌ ±0 
10 392 runs  +4  10 312 ✅ +4  80 💤 ±0  0 ❌ ±0 

Results for commit be84166. ± Comparison against base commit bf46754.

@vaadin-bot vaadin-bot merged commit 6702427 into 25.1 Mar 26, 2026
29 of 30 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-23980-to-25.1-1774515231367 branch March 26, 2026 09:09
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.

3 participants