Skip to content

Section outlet doesn't update when section content is rendered with streaming rendering #50804

Closed
@danroth27

Description

@danroth27

Repro steps:

  • Install .NET 8 RC1
  • Create a Blazor Web App
  • In MainLayout.razor add a SectionOutlet in the top row:
<div class="top-row px-4">
    <SectionOutlet SectionName="top-row" />
    <a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>
  • In Weather.razor add a SectionContent:
<SectionContent SectionName="top-row">
    @forecasts?[0].Summary
</SectionContent>
  • Run the app and browse to the weather page

Expected result: The weather forecast summary for the next day renders in the top row.
Actual result: The top row is empty.
Workaround: Disable streaming rendering on the weather page.

Metadata

Metadata

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions