Commit d8978f3
Fix: Blazor render crash on session delete
Session deletion triggered rapid render batch churn:
1. Session.DisposeAsync() talked to CLI, triggering SDK events
2. OnStateChanged fired from CloseSessionAsync
3. ReconcileOrganization fired another OnStateChanged
This caused Blazor render batch ordering races ('r.parentNode.removeChild'
on null) and 'unexpected acknowledgement for render batch N' errors.
Fix: move DisposeAsync to fire-and-forget after UI update, and remove
redundant ReconcileOrganization call (session already removed from
_sessions, reconciliation just caused extra state churn).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c52948b commit d8978f3
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | 2414 | | |
2418 | 2415 | | |
2419 | 2416 | | |
| |||
2433 | 2430 | | |
2434 | 2431 | | |
2435 | 2432 | | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
2436 | 2437 | | |
2437 | 2438 | | |
2438 | 2439 | | |
2439 | | - | |
2440 | 2440 | | |
2441 | | - | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
2442 | 2453 | | |
2443 | 2454 | | |
2444 | 2455 | | |
| |||
0 commit comments