Skip to content

InteractiveAutoRenderMode(prerender:false)) does not use interactive server rendering #54657

Open
@ihorlazarenko

Description

@ihorlazarenko

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When InteractiveAuto render mode is used without prerendering, server rending is not started and Blazor hangs until wasm dlls are loaded.

Expected Behavior

When Blazor webassembly cache is empty server rendering should start no matter whether prerender is enabled or not.

Steps To Reproduce

  1. Create Blazor project with Auto interactive render mode from template(interactive location per component).
  2. Change render mode in Counter.razor to @rendermode @(new InteractiveAutoRenderMode(prerender:false))
  3. build run
  4. Change network latency in browser developer mode to Slow 3G or smth slow and clear Blazor cache dlls
  5. Open Counter page and see that page is empty and Blazor does not use server rendering and only load dlls
    2024-03-21_03-34-42

Exceptions (if any)

No response

.NET Version

8.0.203

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issuearea-blazorIncludes: Blazor, Razor Componentsfeature-full-stack-web-uiFull stack web UI with Blazorinvestigate

    Type

    No type

    Projects

    Status

    8.0.x

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions