-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-serverfeature-full-stack-web-uiFull stack web UI with BlazorFull stack web UI with Blazorfeature-templates
Milestone
Description
The default Blazor Web App template is only setup for server-side rendering. It doesn't enable any interactivity modes. The means that commonly used Blazor features, like registering UI event handlers (@onclick
, @bind
, etc) simply don't work and nothing will tell you why. Defaults should reflect the most common use cases. It seems reasonable to expect that most Blazor users will want some form of interactivity, so the current default creates an initial pit of failure.
Proposal:
- Enable server interactive rendering mode by default. The overhead of enabling server interactivity for what is already a server centric app seems minimal: You get the Blazor Server hub, which you might not be using. To disable the hub you simply remove the call to
AddServerComponents()
. - Enabling the WebAssembly rendering mode should still be optional given the complexities involved with setting up a separate project.
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-serverfeature-full-stack-web-uiFull stack web UI with BlazorFull stack web UI with Blazorfeature-templates