Forgive me, I'm new. All the samples have @rendermode InteractiveServer, which I understand renders the DOM on the server then sends it to the browser. I'm trying to make a client-side web app with lower user-interaction-latency using @rendermode InteractiveWebAssembly but I'm getting errors which makes me wonder:
- Can this project be used with
@rendermode InteractiveWebAssembly?
- Are there reasons to do (or not do) server-side rendering of this project?
- Is client-side rendering possible and I'm "doing it wrong"? Are there examples of that?
The error I get while loading the webpage: InvalidOperationException: Cannot provide a value for property 'JSRuntime' on type 'AzureMapsControl.Components.Map.AzureMap'. There is no registered service of type 'AzureMapsControl.Components.Runtime.IMapJsRuntime'.
I've got @inject IJSRuntime JSRuntime on the page and
app.MapRazorComponents<App>().AddInteractiveWebAssemblyRenderMode()
in program.cs.
Forgive me, I'm new. All the samples have
@rendermode InteractiveServer, which I understand renders the DOM on the server then sends it to the browser. I'm trying to make a client-side web app with lower user-interaction-latency using@rendermode InteractiveWebAssemblybut I'm getting errors which makes me wonder:@rendermode InteractiveWebAssembly?The error I get while loading the webpage:
InvalidOperationException: Cannot provide a value for property 'JSRuntime' on type 'AzureMapsControl.Components.Map.AzureMap'. There is no registered service of type 'AzureMapsControl.Components.Runtime.IMapJsRuntime'.I've got
@inject IJSRuntime JSRuntimeon the page andapp.MapRazorComponents<App>().AddInteractiveWebAssemblyRenderMode()in program.cs.