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

Developer technologies | .NET | Blazor
Developer technologies | .NET | Other
{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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.