Repository navigation
Fix Blazor fatal error banner persisting after successful reconnection - #70084
Conversation
|
Thanks for your PR, @PreethikaSelvam. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
…connection failure displays the fatal error banner, which remains visible even after successful recovery.
39ad665 to
5d4f58f
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the reconnection error-handling change.
No open issues 🎉
What changed in this PR
Fixes Blazor’s fatal error banner remaining visible after a successful reconnection by routing connection-start failures for existing circuits through the reconnection handler.
Changes:
- Propagates existing-circuit startup failures regardless of error type, preventing
ConnectCircuitfrom running after a failed start. - Adds a test-host option to skip SignalR negotiation.
- Adds Selenium coverage for failed reconnection attempts with and without negotiation, checking recovery, preserved state, interactivity, and error-banner visibility.
| File | Description |
|---|---|
| src/Components/Web.JS/src/Platform/Circuits/CircuitManager.ts | Routes existing-circuit connection-start failures to reconnection handling. |
| src/Components/test/testassets/Components.TestServer/Pages/_ServerHost.cshtml | Enables WebSockets-only connections through a query option. |
| src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionTest.cs | Tests reconnection recovery and confirms genuine fatal errors still display the banner. |
Review effort: Balanced
|
/review |
|
Copilot's local review panel found no issues to raise at this commit. |
kotlarmilos
left a comment
There was a problem hiding this comment.
LGTM! I suggest removing E2E test as the change is small.
As per the suggestion removed the E2E test. |
|
✅ No documentation PR was created. Confidence that documentation is needed: 8% No docs needed: bug fix in Blazor circuit reconnection handling with no public API, configuration, or default changes. Documentation surfaces considered
|
Description
When
skipNegotiation: trueis configured, a failed WebSocket reconnection attempt displays the fatal error banner. The banner remains visible even after a subsequent attempt successfully reconnects the circuit.Previously, only
FailedToNegotiateWithServerErrorwas propagated to the reconnection layer. Other connection-start failures displayed the fatal banner and allowed reconnection to continue with a disconnected connection.This change:
ConnectCircuitafter connection startup fails.Validation
atls.lib. Lint reports pre-existing violations; no new diagnostics were introduced in the changed TypeScript file.Before Fix
GH69596BeforeFix.mp4
After Fix
GH69596AfterFix.mp4
Test Results
Fixes #69596