page not predendered blazor webapplication

Qun Shen 60 Reputation points
2023-12-07T03:42:03.1533333+00:00

I have blazor webapplication with rendermode:InteractiveServerRenderMode.

The app uses an custom router component insead of the built-in Router component. When the application runs, it appears that pages not prerendered. Please the see the attached screen shot.

Untitled

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,053 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,647 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Qun Shen 60 Reputation points
    2023-12-08T12:23:48.3766667+00:00

    The root component: App.razor alreadly specified render model:InteractiveServerRenderMode

    a1

    The custom router is inside the Router component

    So the rendermodel for the whole site are set!

    The website was created using aspnetcore 8 standard blazor templae. and replace the built-in Router component with our custom router.

    I also tried,according your suggestion, to set the router render model at custom router level. The result is the same: pages not prerendered!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.