-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
SSR/server interactivity Error Boundary not working with Blazor Web App Pre6/7 #49679
Comments
@guardrex You didn't mention what you're doing to make the If you were to make the whole app interactive from the I'll close this as by design, but please let me know if you think I'm missing anything! |
I see ... so
... but WRT ... so you're suggesting that documentation should explicitly instruct devs that they need to enable interactivity in |
.... almost good! 😄
I'm concerned about this because devs might not want SSR applied to the whole app. Let me know if there's something special that needs to be called out about this ... or some other approach. Are we going to say that error boundaries can't be enabled via |
@SteveSandersonMS ... I'm going to work on the text at dotnet/AspNetCore.Docs#30128. If you want, you can help me on the PR with the lingo. |
Error boundaries can be enabled wherever the developer wants them to be, but:
So it's up to the developer to decide what they want. The only thing they can't do is have a noninteractive error boundary somehow participate in interactive rendering.
They can have an error boundary in MainLayout even without it being interactive, but it will only exist (and hence catch errors) during SSR, not during interactive rendering. |
Is there an existing issue for this?
Describe the bug
Error boundary seems dysfunctional in ordinary use in Pre6 (i.e., not just with Forms, which was a fix for Pre7 on #47903). The circuit is lost, and the normal Blazor error UI is shown ...
Expected Behavior
Normal Error Boundary processing. The following is from a Blazor Server 7.0 app ...
Steps To Reproduce
In
Shared/MainLayout.razor
...In
Pages/Counter.razor
...... with
AddServerComponents
+AddServerRenderMode
.Exceptions (if any)
No exception. The error boundary is dysfunctional.
.NET Version
8.0.100-preview.6.23330.14
UPDATE: Still broken in Pre7 (8.0.0-preview.7.23375.6).
Anything else?
No response
The text was updated successfully, but these errors were encountered: