Skip to content

Render issue when mixing render modes in server-rendered page #49490

Closed
@marinasundstrom

Description

@marinasundstrom

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

This bug is regarding 2 instances of the Counter component on the same SSR page, each with different render modes, in the particular order: 1) Server and 2) WebAssembly.

It doesn't look right in prerendering:
Screenshot 2023-07-18 at 15 08 15

And when the interactivity kicks in the components get displaced:

Screenshot 2023-07-18 at 14 58 26

Expected Behavior

Here is when the components order is reversed and they are displayed as expected:

Screenshot 2023-07-18 at 14 58 40

Steps To Reproduce

Here is the page component: https://github.com/marinasundstrom/Blazor8Test/blob/bug/src/Server/Pages/CounterPage2.razor

Exceptions (if any)

No response

.NET Version

8.0.100-preview.6.23330.14

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-full-stack-web-uiFull stack web UI with Blazor

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions