-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
BlazorWebView needs a way to enable overriding ResolveComponentForRenderMode #51235
Comments
Thanks for contacting us. We're moving this issue to the |
i think this issu is relationed : #52129 |
Thanks for contacting us. We're moving this issue to the |
For anyone wanting to try a workaround that should work in any .NET 8 Blazor app (Blazor Web or Blazor Hybrid), check out the sample PR here: BethMassi/HybridSharedUI#1 In the sample there are a few parts to note:
Note: This won't help you if you don't own all the code that sets the render modes. For example, a 3rd party NuGet package that already sets a render mode will not work in a Blazor Hybrid app. |
Scenario: I have Razor components enabled for various interactivity modes in a Blazor web app, such as specifying
@attribute [RenderModeInteractiveServer]
. I want to place those components in a Razor Class Library (RCL) and re-use them in a Blazor Hybrid app.Problem: You get errors stating that the interactivity modes are not supported in BlazorWebView's hybrid renderer.
@Eilon said in a chat:
@SteveSandersonMS responded:
Enabling this requires some change in the aspnetcore repo, such as:
aspnetcore/src/Components/WebView/WebView/src/PageContext.cs
Line 49 in c84bdf4
Note: Customers have also noticed this: dotnet/maui#17725
The text was updated successfully, but these errors were encountered: