The Wayback Machine - https://web.archive.org/web/20211208221119/https://github.com/dotnet/aspnetcore/issues/38905
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorBoundary not working as expected #38905

Open
thirstyape opened this issue Dec 8, 2021 · 0 comments
Open

ErrorBoundary not working as expected #38905

thirstyape opened this issue Dec 8, 2021 · 0 comments

Comments

@thirstyape
Copy link

@thirstyape thirstyape commented Dec 8, 2021

Am I using this incorrectly? I implemented as per Documentation in MainLayout.razor with the slight change that in my <ErrorContent> section I added a button that triggers errorBoundary?.Recover();.

My test involved throwing a generic exception with a message from a child component in protected override void OnInitialized(). The result was that instead of displaying the content of @Body or the ErrorContent, there was nothing. Upon opening the browser inspector I had an empty <main></main>.

I also tried creating a custom class that implemented ErrorBoundary, but this did not help either.

Originally posted by @thirstyape in #30874 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants