Skip to content
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

Combination different render modes in Blazor webApp #21889

Open
zoxoxx opened this issue Jan 13, 2025 · 0 comments
Open

Combination different render modes in Blazor webApp #21889

zoxoxx opened this issue Jan 13, 2025 · 0 comments

Comments

@zoxoxx
Copy link

zoxoxx commented Jan 13, 2025

Hello.
Please help me understand the issue of using different render modes in one application. I created the blazor webApp project (app new TodoApp -u blazor-webapp). What do I need to do so that I can use my own rendermode for each component? (it is necessary to use InteractiveServer and InteractiveWebAssembly in the same application)
I tried to follow the (Microsoft documentation https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes ?view=aspnetcore-9.0 ) this leads to an unhandled exception (I moved the component with routes from the client to the server project and added the component with @rendermode InteractiveServer. I added ServerProject.Program in AdditionalAssemblies in component "Routes")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant