Skip to content

BuildRenderTree does not get called in Preview 4 #9857

Closed
@DerekChasse

Description

@DerekChasse

Describe the bug

I've added a simple component which overrides BuildRenderTree and attempts to wrap ChildContent in a simple <div>. I've more complex logic in a real-world usage, but this simple test demonstrates the issue.

I'm wondering if this is related to the ix for #8192

To Reproduce

See reproducible demo here:
https://github.com/DerekChasse/BuildRenderTree

Index.razor has a <p> tag which should, as part of rendering the TestComponent, be wrapped in a <div> and that <div> should have a GUID identifier as a simple test of AddAttribute.

Expected behavior

I would expect that, as in preview 0.9.0 calls to the overridden BuildRenderTree be honored.

Screenshots

image

Additional context

There is also simple logging with Console.Writeline in the BaseIndex baseclass which was previously honored in and is no longer being called.

Visual Studio 16.1.0 Preview 2.0
dotnet 3.0.100-preview4-011223

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions