Skip to content

in Blazor Server When I set the render mode for the entire app the prerender always false even I set it to true #53462

Closed
@sherif-hfm

Description

@sherif-hfm

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I set the render mode for the entire app
<Routes @rendermode="@(new InteractiveServerRenderMode(prerender: true))" />
the prerender works as false value even if I set it inside the component
@rendermode @(new InteractiveServerRenderMode(prerender: true))
OnInitializedAsync and OnInitialized is executed one time not twice and PersistentComponentState not working

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions