MudDialog: Fix exception when closing a dialog while rendering#10226
MudDialog: Fix exception when closing a dialog while rendering#10226ScarletKuro merged 6 commits intoMudBlazor:devfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10226 +/- ##
==========================================
+ Coverage 91.53% 91.55% +0.01%
==========================================
Files 414 414
Lines 13014 13015 +1
Branches 2454 2455 +1
==========================================
+ Hits 11913 11916 +3
+ Misses 551 549 -2
Partials 550 550 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
henon
left a comment
There was a problem hiding this comment.
Good job! Just fix the exception message, then it can be merged.
|
@henon, I fixed the exception message. |
|
Very interesting but |
It was just coincidence, doesn't matter with or without |
It's not that test flaky, if you play with |
|
I fail to reproduce. |
with your changes against latest dev |
|
Btw, if you struggle to fix it using |
|
I think the problem is that As I previously used |
4267d75 to
f061fc3
Compare
|
@ScarletKuro , the PR sound ready to the next review. |
|
@ScarletKuro ping |
Will double check it on friday/weekends. |
ff833fc to
fe116c0
Compare
|






Description
Fixes #10180
Fixes #8497
Closing a dialog while rendering throws the exception:
The reason is that rendering enumerate
MudDialogProvider._dialogsand closing remove a element inMudDialogProvider._dialogs.The solution is to use a concurrent collection.
How Has This Been Tested?
I added a test to reproduce the bug.
Type of Changes
Checklist
dev).