Blazored / Modal

A powerful and customizable modal implementation for Blazor applications.
https://blazored.github.io/Modal/
MIT License
786 stars 186 forks source link

What about the ErrorBoundary? #588

Open nmdschultz opened 1 month ago

nmdschultz commented 1 month ago

Hey there!

Due to the fact that the CascadingBlazoredModal is added to App.razor wrapping the router, it falls outside of the ErrorBoundary normally specified within MainLayout. This means that the error lands all the way out in my index.html in the <div id="blazor-error-ui">.

Ideally, if an exception is thrown from within my modals, I would like the following things to happen:

Does anyone have any good ideas of how to do this? I have tried placing new ErrorBoundaries, adding @layouts and many other things, but it seems really tricky to get this right..

nmdschultz commented 3 weeks ago

Any thoughts on this @chrissainty ? :)