You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
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..