Skip to content

Blazor Web App / Auto Mode / Counter button not responsive if switch to that page quickly #58860

Closed as not planned
@ToolmakerSteve

Description

@ToolmakerSteve

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

New Project / Blazor Web App / Interactive Render Mode = Auto.

Launch under debugger. Quickly switch to Counter page, and quickly press Counter.

It does not respond (WASM not yet loaded).

Expected Behavior

Counter is always responsive.

(Stay in Server Render Mode, until a page switch occurs AND WASM is ready.)

IMHO, this should be the default behavior: "Keep simple cases simple".

To put it another way: what possible benefit is there to switching to client rendering when Blazor knows perfectly well that cannot work yet!

Steps To Reproduce

See bug description.

Exceptions (if any)

No response

.NET Version

latest 8.0

Anything else?

This bug appears to be "by design", and probably covered by #53799,
as well as similar issues.

Nevertheless, even the simplest app reveals a problem with the current logic for switching between server and client rendering.

Please don't lose sight of this fact.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions