Skip to content

Add clarification on interactive root component remark #31543

@DavidThielen

Description

@DavidThielen

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In the documentation discussing disabling pre-rendering it says:

Making a root component interactive, such as the App component, isn't supported. Therefore, prerendering can't be disabled directly by the App component.

It then goes on to say:

For apps based on the Blazor Web App project template, a render mode assigned to the entire app is specified where the Routes component is used in the App component (Components/App.razor). The following example sets the app's render mode to Interactive Server with prerendering disabled:

So it says you can't set this in App.razor. Then tells you to turn it off globally, set it to false in App.razor. This needs to say one or the other as both cannot be correct at the same time.

Expected Behavior

It should state that either prerendering can not be set in App.razor and it then shows an example of how to then set it in every top level component.

Or it should state that it can be set in App.razor and then keep the existing example.

Steps To Reproduce

Read the documentation

Exceptions (if any)

No response

.NET Version

8

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions