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

Suggestion: Enhance section on changing the default render mode for an app #31078

Closed
TheCakeMonster opened this issue Nov 20, 2023 · 4 comments · Fixed by #31079
Closed

Suggestion: Enhance section on changing the default render mode for an app #31078

TheCakeMonster opened this issue Nov 20, 2023 · 4 comments · Fixed by #31079
Assignees
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@TheCakeMonster
Copy link

Description

[Enter feedback here]
If you create an app from the Blazor Web App template using the Auto (Server and Client) rendering mode option and then, later, choose to manually change the render mode for the whole application, the section of this document that shows setting @rendermode on the Routes component only works correctly if you choose InteractiveServer. If you choose InteractiveWebAssembly or InteractiveAuto then an error message is generated in the console, because the Routes component cannot be found.

The Routes component needs to be moved to the Client project for this section of the document to work. That also requires moving the MainLayout and NavMenu components.

I think explaining the need for the Routes component to be in the Client project might help some people understand the error message that is written to the console, if they encounter it. I only resolved the problem by rewatching Steve Sanderson's .NET Conf session again, where he explains this during the demo.

Error: One or more errors occurred. (Root component type 'ABC.Components.Routes' is not found in project 'ABC')

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/render-modes.md

Document ID

7c9948a3-9886-8097-6014-492a4c21ea4e

Article author

guardrex

Copy link
Contributor

🍂 Happy Autumn!

A green dinosaur 🦖 will be along shortly to assist. Stand-by ........

@guardrex
Copy link
Collaborator

Thanks, @TheCakeMonster ... I agree. I'll try to get this resolved on Wednesday morning, as I have another high priority task that's going to be worked on Tuesday.

@guardrex guardrex moved this from Triage to 8.0 in Blazor.Docs Nov 20, 2023
@guardrex
Copy link
Collaborator

Actually, I think I can't knock this out quickly. It's just a few lines. I'll see if I can fix it today.

@guardrex guardrex moved this from 8.0 to In progress in Blazor.Docs Nov 20, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in Blazor.Docs Nov 20, 2023
@TheCakeMonster
Copy link
Author

@guardrex Thanks, that looks great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants