Skip to content

Callsite rendermodes (#48967) #49055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

SteveSandersonMS
Copy link
Member

This is a forward-port to main of #48967, which was already merged into release/8.0-preview6 via ask mode.

* builder.AddComponentRenderMode API and storage on RenderTree

* Extend ResolveComponentForRenderMode to receive callerSpecifiedRenderMode, and supply it from ComponentFactory

* Simplify API: collapse the two rendermode sources into a single rendermode before calling ResolveComponentForRenderMode

* Corresponding renames

* Actually supply callsite rendermode from RenderTree

* Give clearer errors if misusing this feature

* Build fix

* Actually use the parameter name @rendermode for forward-compatibility with the final syntax

* Add E2E tests
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner June 27, 2023 12:57
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jun 27, 2023
@SteveSandersonMS SteveSandersonMS merged commit 8564dfe into main Jun 29, 2023
@SteveSandersonMS SteveSandersonMS deleted the stevesa/callsite-rendermode-forwardport branch June 29, 2023 14:17
@ghost ghost added this to the 8.0-preview7 milestone Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants