Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

use InteractiveWebAssembly in Blazor Web App

$
0
0

I created project from this template (.NET 8):Blazor Web App

And I want to use InteractiveWebAssembly in Counter.razor page.

I add modification in Program.cs:

builder.Services.AddRazorComponents()    .AddInteractiveServerComponents()     .AddInteractiveWebAssemblyComponents();

and:

app.MapRazorComponents<App>()    .AddInteractiveServerRenderMode()    .AddInteractiveWebAssemblyRenderMode();  

and on Counter.razor replaced @rendermode InteractiveServer to @rendermode InteractiveWebAssembly

But after this counter stopped to work, debugger never go to IncrementCount() method.

What did you miss, do I need other modifications in the project?


Viewing all articles
Browse latest Browse all 4839

Trending Articles