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:
Close down the modal
Let my MainLayout handle the error (in this case it shows an error page to the user)
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..
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..