Improve error handling in Blazor #14928
Labels
area-blazor
Includes: Blazor, Razor Components
Components Big Rock
This issue tracks a big effort which can span multiple issues
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Milestone
From @Sebazzz. See conversation here: https://devblogs.microsoft.com/aspnet/blazor-server-in-net-core-3-0-scenarios-and-performance/#comment-941
"I very much enjoy working with Blazor Server. I’m currently building a retrospective app in it (similar to retrium). I like the almost no-effort real-time UI and state broadcasting that’s possible with Blazor. It does some time getting rid of the classic request/response mindset. [However] error handling is cumbersome, and almost everything is destructive to the current session. And if something happens, the user doesn’t see any indication something happened. The need to litter every callback with a try/catch mechanism to contain errors and show an error message. Having a global or per-component error handling routine would be nice. Some errors, like errors during callbacks are recoverable. In addition to the above, in some conditions an unhandled error won’t be visible to the user anymore. The user interface will be unresponsive and there does not appear to be way to show a general message that something went wrong. I also like to be able to attach loading logic while a callback or event is performed (or are events performed synchronously?)."
The text was updated successfully, but these errors were encountered: