What's the difference between
@(await Html.RenderComponentAsync<Todo>(RenderMode.ServerPrerendered))
and
@(await Html.RenderComponentAsync<Todo>(RenderMode.Server))
I was looking into the documentation but couldn't really find something that explains the difference. and also don't really understand the code comments over the enum stating:
// Summary:
// Renders a marker for a Blazor server-side application. This doesn't include any
// output from the component. When the user-agent starts, it uses this marker to
// bootstrap a blazor application.
Server = 2,
//
// Summary:
// Renders the component into static HTML and includes a marker for a Blazor server-side
// application. When the user-agent starts, it uses this marker to bootstrap a blazor
// application.
ServerPrerendered = 3
What is happening behind the scenes? And what are the Scenarios for using Server vs ServerPrerendered?