Skip to content

[Components] Figure out layering on the server #7807

@javiercn

Description

@javiercn

We want MVC and Components.Server to play nice together.

  • MVC has a basic (non-interactive) prerender
  • Components.Server has a nicer prerenderer (that supports interactivity).
  • We want Components.Server to take over transparently.

They both end up needing some sort of shared abstraction that defines "prerrendering".

  • We can leave Components referencing MVC (as it does today).
  • We can invert the relationship and have MVC reference components.Server
  • We can put the abstractions in Microsoft.AspNetCore.Components but that limits the expressiveness and doesn't apply to WebAssembly scenarios.
  • We can create a new assembly that is where the shared abstractions between the server components live.
    • Microsoft.AspNetCore.Components.Http
    • Microsoft.AspNetCore.Components.Core
    • Microsoft.AspNetCore.Components.Html
    • Microsoft.AspNetCore.Components.Prerendering

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions