Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
marinasundstrom opened this issue Jul 18, 2023 · 1 comment
Closed
1 task done

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

marinasundstrom opened this issue Jul 18, 2023 · 1 comment
Assignees
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-full-stack-web-ui Full stack web UI with Blazor
Milestone

Comments

@marinasundstrom
Copy link

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

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jul 18, 2023
@mkArtakMSFT mkArtakMSFT added bug This issue describes a behavior which is not expected - a bug. feature-full-stack-web-ui Full stack web UI with Blazor labels Jul 18, 2023
@mkArtakMSFT mkArtakMSFT modified the milestones: 8.0-preview7, 8.0-rc1 Jul 18, 2023
@MackinnonBuck
Copy link
Member

Thanks for the issue report, @marinasundstrom! This was fixed in #49238

@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-full-stack-web-ui Full stack web UI with Blazor
Projects
None yet
Development

No branches or pull requests

4 participants
@marinasundstrom @MackinnonBuck @mkArtakMSFT and others