Skip to content

What about the ErrorBoundary? #588

@nmdschultz

Description

@nmdschultz

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:

  • 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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions