Skip to content

Add Blazor component event handling to Blazor SSR #56104

@gabephudson

Description

@gabephudson

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

While Blazor SSR is great, it is limited to form-based interactivity with very limited UI state management. It would be wonderful to supplement the framework so one can (optionally) enabled Blazor events (like OnClick) using SSR and HttpRequest to fire a SS event and stream in DOM changes. See solution suggestion

Describe the solution you'd like

I would love to see Blazor SSR to (optionally) support events. Think Blazor global interactive server without a WebSocket, but instead limited focused events and state transfer via HTTPRequest.

I was made aware (via the video below) of a very interesting open-source project called Hydro that does this with Razor Pages. It would be amazing if this type of functionality could be supported on Blazor SSR. It would, of course, be more limited than Interactive Server, but also be a sweet spot for scalability and dev productivity.

Bottom line, just want to expose the Blazor team to this project/idea, and see if in 10, we could get something similar baked in!
https://www.youtube.com/watch?v=CwZjQJHwHbQ
https://github.com/hydrostack/hydro/

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-ssr

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions