Skip to content

Investigate not requiring unintuitive requirements for pre-rendering PageTitle #38400

@pranavkm

Description

@pranavkm

Pre-rendering for PageTitle requires rendering things in a specific order and relies on a _Layout.cshtml which is not very intuitive. See https://docs.microsoft.com/en-us/aspnet/core/blazor/components/prerendering-and-integration?view=aspnetcore-6.0&pivots=webassembly#prerendering-configuration for all of the steps involved here.

Possible things to look at:

a) Can we do away with requiring a separate _Layout?
b) If the first option is difficult, could we produce an error if the PageTitle component is being rendered before any other component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-prerenderingIssues related to prerendering blazor components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions