Skip to content

Give error if the root component is interactive. Fixes #48847 #48945

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 2 commits into from
Jun 21, 2023

Conversation

SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Jun 21, 2023

For reasoning, see #48793 (comment)

Since this is purely a client-side error (and it would already have been an error before; this just changes the error text that comes out) I'm not prioritizing adding an explicit E2E test for it.

@SteveSandersonMS SteveSandersonMS added the area-blazor Includes: Blazor, Razor Components label Jun 21, 2023
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner June 21, 2023 15:47
@@ -19,7 +19,6 @@ internal class RazorComponentEndpointHost : IComponent
{
private RenderHandle _renderHandle;

[Parameter] public IComponentRenderMode? RenderMode { get; set; }
Copy link
Member Author

@SteveSandersonMS SteveSandersonMS Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaning up unused code. It's an internal component and we never supplied a value for this parameter, nor would it ever make sense for us to do so.

Copy link
Member

@surayya-MS surayya-MS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/error-if-root-component-is-interactive branch from 317b67e to 87d646a Compare June 21, 2023 17:08
@SteveSandersonMS SteveSandersonMS enabled auto-merge (squash) June 21, 2023 17:09
@SteveSandersonMS SteveSandersonMS merged commit b251d95 into main Jun 21, 2023
@SteveSandersonMS SteveSandersonMS deleted the stevesa/error-if-root-component-is-interactive branch June 21, 2023 20:38
@ghost ghost added this to the 8.0-preview6 milestone Jun 21, 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.

3 participants