What is the value of using RenderMode.InteractiveServer"? #53201
-
Hi; I don't understand the value of this. And the Blazor team is smart which means this is something worth the effort. So I'd like to understand the value in it so I use it when appropriate. At present I am using (code first created in .NET 6, now using .NET 8): <component type="typeof(HeadOutlet)" render-mode="Server" /> But now the recommended approach in .NET 8 is: <Routes @rendermode="@RenderMode.InteractiveServer"/> Which I assume can be done as: <component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" /> So here's my question. When I switch to Where's the win in this? I could see a win if there was a new And an additional negative for So... what is the advantage of thanks - dave |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The difference is that in one case you are prerendering and in the other you aren't. The benefit of prerendering is that the content is available to the user much faster.
There are strategies you can follow to avoid hitting the database twice:
|
Beta Was this translation helpful? Give feedback.
The difference is that in one case you are prerendering and in the other you aren't. The benefit of prerendering is that the content is available to the user much faster.
There are strategies you can follow to avoid hitting the database twice: